Patch #1879 2007-02-08 16:13
arst
Repeated search after deselecting text- Download
- 1879-Repeated_searc.patch (606 bytes)
Index: sdk/editormanager.cpp
===================================================================
--- sdk/editormanager.cpp (revision 3557)
+++ sdk/editormanager.cpp (arbetskopia)
@@ -1376,6 +1376,11 @@
if (!data->directionDown) // up
data->end = 0;
+ // selected text, if user has deslected since last, then change scope
+ if (data->scope == 1 &&
+ control->GetSelectionStart()==control->GetSelectionEnd())
+ data->scope = 0;
+
if (data->scope == 1) // selected text
{
if(data->NewSearch)
History
mandrav 2007-04-12 10:13
What is the purpose of this patch?
dmoore 2007-04-12 13:18
my guess is that this changes the scope of a "find again" (F3) if the user deselects a selected region after they made the initial search. this is probably useful because if your search of the selection comes up empty and you want to then search the entire file you only have to deselect the still selected region and press F3. if your search is successful, the first instance of the search text will be highlighted, so pressing F3 will retain the original selection scope. Only if you deselect the found text will your search expand beyond the original text.
mandrav 2007-04-12 13:25
You are right.
Patch applied, thank you.