mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 16:20:35 +02:00
SynEdit: fix "paste as column", don't move caret-x, if last pasted line is empty
This commit is contained in:
parent
75d96cf0ea
commit
faccb609a2
@ -2389,7 +2389,9 @@ var
|
|||||||
SetLength(Str, P - Start);
|
SetLength(Str, P - Start);
|
||||||
Move(Start^, Str[1], P - Start);
|
Move(Start^, Str[1], P - Start);
|
||||||
FLines.EditInsert(FInternalCaret.BytePos, FInternalCaret.LinePos, Str);
|
FLines.EditInsert(FInternalCaret.BytePos, FInternalCaret.LinePos, Str);
|
||||||
end;
|
end
|
||||||
|
else
|
||||||
|
Str := '';
|
||||||
if p^ in [#10,#13] then begin
|
if p^ in [#10,#13] then begin
|
||||||
if (p[1] in [#10,#13]) and (p[1]<>p^) then
|
if (p[1] in [#10,#13]) and (p[1]<>p^) then
|
||||||
inc(p,2)
|
inc(p,2)
|
||||||
|
Loading…
Reference in New Issue
Block a user