From 893ba69a963c42fb5f120cd592348ade1913ad7f Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 1 Jul 2009 12:48:20 +0000 Subject: [PATCH] Fixed minor bug with find&replace git-svn-id: svn://ultimatepp.org/upp/trunk@1350 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CodeEditor/FindReplace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/CodeEditor/FindReplace.cpp b/uppsrc/CodeEditor/FindReplace.cpp index 477eb5339..d06ac27fc 100644 --- a/uppsrc/CodeEditor/FindReplace.cpp +++ b/uppsrc/CodeEditor/FindReplace.cpp @@ -308,7 +308,7 @@ int CodeEditor::BlockReplace(WString find, WString replace, bool wholeword, bool PlaceCaret(l); int count = 0; for(;;) { - if(!Find(false, find, wholeword, ignorecase, wildcards, true) || cursor >= h) break; + if(!Find(false, find, wholeword, ignorecase, wildcards, true) || cursor > h) break; int hh, ll; GetSelection(ll, hh); CachePos(ll);