mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 14:39:22 +02:00
SynEdit, Fix Replacing SelectedText, if selection is backwards, issue #13904
git-svn-id: trunk@20399 -
This commit is contained in:
parent
904c6cee55
commit
0ed28eaffa
@ -830,7 +830,7 @@ begin
|
||||
BE := LastLineBytePos;
|
||||
if SelAvail then begin
|
||||
DeleteSelection;
|
||||
EndLineBytePos := BB; // deletes selection // calls selection changed
|
||||
StartLineBytePos := BB; // deletes selection // calls selection changed
|
||||
end;
|
||||
if (Value <> nil) and (Value[0] <> #0) then begin
|
||||
FCaret.LineBytePos := StartLineBytePos;
|
||||
|
Loading…
Reference in New Issue
Block a user