synedit: fixed crash on ecLineBreak when Lines empty

git-svn-id: trunk@16875 -
This commit is contained in:
mattias 2008-10-04 20:01:43 +00:00
parent 677ae24396
commit 4b73fa2e5f

View File

@ -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,