parent
5f7d953f43
commit
d4d4c864db
1 changed files with 2 additions and 3 deletions
|
@ -347,7 +347,6 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
|
|||
size_t match_start;
|
||||
regex.GetMatch(&match_start,&matchLen,0);
|
||||
pos = match_start + tempPos;
|
||||
//matchLen++;
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
@ -355,12 +354,12 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
|
|||
|
||||
// Normal
|
||||
else {
|
||||
int textPos = tempPos;
|
||||
wxString src = Text->Mid(tempPos);
|
||||
if (!matchCase) src.MakeLower();
|
||||
int tempPos = src.Find(LookFor);
|
||||
if (tempPos != -1) {
|
||||
pos = tempPos;
|
||||
pos += tempPos;
|
||||
pos = textPos+tempPos;
|
||||
found = true;
|
||||
matchLen = LookFor.Length();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue