mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 13:09:28 +02:00
SynEdit: fix caret after certain block.SetText operations. Issue #14195
git-svn-id: trunk@20953 -
This commit is contained in:
parent
34e2e7ad8d
commit
f865263b5a
@ -914,8 +914,8 @@ begin
|
||||
BB.X := 1;
|
||||
StartLineBytePos := BB; // deletes selection // calls selection changed
|
||||
end;
|
||||
FInternalCaret.LineBytePos := StartLineBytePos;
|
||||
if (Value <> nil) and (Value[0] <> #0) then begin
|
||||
FInternalCaret.LineBytePos := StartLineBytePos;
|
||||
InsertText;
|
||||
StartLineBytePos := FInternalCaret.LineBytePos; // reset selection
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user