Search plugin: use current word if nothing is selected
Review Request #112763 - Created Sept. 16, 2013 and submitted
With this patch, when starting a new search, and no text is selected, the word below the cursor is used as initial search pattern. The code for getWordFromDocument() is taken mostly from KateDocument::word(), since KTextEditor::Document doesn't have a word() function. IMO this makes searching even quicker.
Looks good! The only nitpicking I have is the missing opening and closing brackets for the one-line while/if statements ;) I actually have similar functions in the gdb and ctags plugins. There they are called "currentWord". This is a good addition. Thanks, Kåre