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;
|
size_t match_start;
|
||||||
regex.GetMatch(&match_start,&matchLen,0);
|
regex.GetMatch(&match_start,&matchLen,0);
|
||||||
pos = match_start + tempPos;
|
pos = match_start + tempPos;
|
||||||
//matchLen++;
|
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -355,12 +354,12 @@ void SearchReplaceEngine::ReplaceNext(bool DoReplace) {
|
||||||
|
|
||||||
// Normal
|
// Normal
|
||||||
else {
|
else {
|
||||||
|
int textPos = tempPos;
|
||||||
wxString src = Text->Mid(tempPos);
|
wxString src = Text->Mid(tempPos);
|
||||||
if (!matchCase) src.MakeLower();
|
if (!matchCase) src.MakeLower();
|
||||||
int tempPos = src.Find(LookFor);
|
int tempPos = src.Find(LookFor);
|
||||||
if (tempPos != -1) {
|
if (tempPos != -1) {
|
||||||
pos = tempPos;
|
pos = textPos+tempPos;
|
||||||
pos += tempPos;
|
|
||||||
found = true;
|
found = true;
|
||||||
matchLen = LookFor.Length();
|
matchLen = LookFor.Length();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue