Originally committed to SVN as r1607.
This commit is contained in:
Rodrigo Braz Monteiro 2007-10-18 03:18:39 +00:00
parent 5f7d953f43
commit d4d4c864db
1 changed files with 2 additions and 3 deletions

View File

@ -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();
}