mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 09:59:23 +02:00
synedit: fixed crash on ecLineBreak when Lines empty
git-svn-id: trunk@16875 -
This commit is contained in:
parent
677ae24396
commit
4b73fa2e5f
@ -8088,6 +8088,9 @@ begin
|
|||||||
CaretY := CaretY + 1;
|
CaretY := CaretY + 1;
|
||||||
end;
|
end;
|
||||||
end else begin
|
end else begin
|
||||||
|
// current line is empty (len = 0)
|
||||||
|
if fLines.Count = 0 then
|
||||||
|
fLines.Add('');
|
||||||
// linebreak after end of line
|
// linebreak after end of line
|
||||||
fUndoList.AddChange(crLineBreak,
|
fUndoList.AddChange(crLineBreak,
|
||||||
LogCaretXY, LogCaretXY,
|
LogCaretXY, LogCaretXY,
|
||||||
|
Loading…
Reference in New Issue
Block a user