SynEdit, Fix Replacing SelectedText, if selection is backwards, issue #13904

git-svn-id: trunk@20399 -
This commit is contained in:
martin 2009-06-04 10:46:53 +00:00
parent 904c6cee55
commit 0ed28eaffa

View File

@ -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;