ide: Fixed issue with recenetly optimized block replace

git-svn-id: svn://ultimatepp.org/upp/trunk@6439 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-10-16 13:45:05 +00:00
parent 85c1312103
commit 9f168e13d4

View file

@ -409,6 +409,7 @@ int CodeEditor::BlockReplace(WString find, WString replace, bool wholeword, bool
Remove(foundpos, foundsize);
WString rt = GetReplaceText(replace, wildcards, ignorecase && samecase);
Insert(foundpos, rt);
foundpos += rt.GetCount();
h = h - foundsize + rt.GetCount();
count++;
}