Search plugin: use current word if nothing is selected

Review Request #112763 - Created Sept. 16, 2013 and submitted

Information
Alexander Neundorf
kate
master
Reviewers
kate
sars
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.

  
Kåre Särs
Alexander Neundorf
Review request changed

Status: Closed (submitted)

Loading...