IDE/SynEdit: fix search and replace in current selection only. issue #14447

git-svn-id: trunk@21466 -
This commit is contained in:
martin 2009-08-27 16:39:05 +00:00
parent 92fc448dae
commit 94e36f9611

View File

@ -1385,7 +1385,11 @@ begin
end;
OldCaretXY:=EditorComponent.CaretXY;
if EditorComponent.SelAvail then begin
if EditorComponent.SelAvail and
not(ssoSelectedOnly in LazFindReplaceDialog.Options)
then begin
// Adjust the cursor. to exclude the selection from being searched
// needed for find next / find previous
if ssoBackwards in LazFindReplaceDialog.Options then
EditorComponent.LogicalCaretXY:=EditorComponent.BlockBegin
else