SynEdit: fix "paste as column", don't move caret-x, if last pasted line is empty

This commit is contained in:
Martin 2025-02-23 16:44:58 +01:00
parent 75d96cf0ea
commit faccb609a2

View File

@ -2389,7 +2389,9 @@ var
SetLength(Str, P - Start);
Move(Start^, Str[1], P - Start);
FLines.EditInsert(FInternalCaret.BytePos, FInternalCaret.LinePos, Str);
end;
end
else
Str := '';
if p^ in [#10,#13] then begin
if (p[1] in [#10,#13]) and (p[1]<>p^) then
inc(p,2)