mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 20:34:01 +02:00
SynEdit: fixed an issue with deleting if past-Eol, padding was sometimes omitted
git-svn-id: trunk@21060 -
This commit is contained in:
parent
45d83017bb
commit
c008588230
@ -848,12 +848,12 @@ var
|
||||
end;
|
||||
if BE.Y > BB.Y then begin
|
||||
l := length(FLines[BB.Y - 1]);
|
||||
if BB.X > l + 1 then BB.X := l + 1;
|
||||
BE.X := BE.X + l;
|
||||
FLines.EditLineJoin(BB.Y);
|
||||
BE.X := BE.X + BB.X - 1;
|
||||
FLines.EditLineJoin(BB.Y, StringOfChar(' ', Max(0, BB.X - (l+1))));
|
||||
BE.Y := BB.Y;
|
||||
end;
|
||||
FLines.EditDelete(BB.X, BB.Y, BE.X - BB.X);
|
||||
if BE.X <> BB.X then
|
||||
FLines.EditDelete(BB.X, BB.Y, BE.X - BB.X);
|
||||
end;
|
||||
FInternalCaret.LineBytePos := BB;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user