mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 11:36:18 +02:00
IDE/SynEdit: fix search and replace in current selection only. issue #14447
git-svn-id: trunk@21466 -
This commit is contained in:
parent
92fc448dae
commit
94e36f9611
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user