mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 20:49:30 +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;
|
||||
end;
|
||||
end else begin
|
||||
// current line is empty (len = 0)
|
||||
if fLines.Count = 0 then
|
||||
fLines.Add('');
|
||||
// linebreak after end of line
|
||||
fUndoList.AddChange(crLineBreak,
|
||||
LogCaretXY, LogCaretXY,
|
||||
|
Loading…
Reference in New Issue
Block a user