Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » search for " A " in "B A A B", does not find the second " A ".
search for " A " in "B A A B", does not find the second " A ". [message #44043] |
Wed, 17 December 2014 18:59  |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Hello,
replacing the line (FindReplace.cpp/197
by
resolve the issue.
bool CodeEditor::Find(bool back, bool block)
{
foundsel = true;
if(notfoundfw) MoveTextBegin();
if(notfoundbk) MoveTextEnd();
foundsel = false;
int cursor, pos;
if(found)
GetSelection(pos, cursor);
else
GetSelection(cursor, pos);
pos++;// = cursor; <===
bool b = FindFrom(pos, back, block);
findreplace.amend.Enable(b);
return b;
}
Thanks.
regards
omari.
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 12:45:32 CEST 2025
Total time taken to generate the page: 0.02854 seconds
|