-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct setting search scope when start of line is selected #1833
When activating the "selected lines" option in the find/replace dialog with the cursor being placed at the beginning (i.e., index 0) of a line, no search scope is initialized. For all other potential cursor positions in a line, the search scope is properly initialized. The reason is a faulty check that prevents the last line of a multi-line selection to be included when the selection ends at the beginning of that last line. This change corrects the behavior to properly initialize a search scope also the cursor is at the beginning of a line. It improves the according code and adds several test cases for the search scope initialization behavior, including one that serves as a regression test for the fixed issue. Fixes #1833
- Loading branch information
1 parent
83bd999
commit 3c86ecf
Showing
2 changed files
with
114 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters