synedit: fixed return value of SearchReplace (bug #8470)

git-svn-id: trunk@10827 -
This commit is contained in:
vincents 2007-03-29 13:26:37 +00:00
parent 242078450b
commit 4652c75ba9

View File

@ -9245,6 +9245,7 @@ begin
and (ptFoundStart.X >= ptStart.X) and (ptFoundEnd.X <= ptEnd.X)) then
begin
// pattern found
Inc(Result);
// Select the text, so the user can see it in the OnReplaceText event
// handler or as the search result.
BlockBegin := ptFoundStart;