SynEdit: prevent bad index. Issue #37325

git-svn-id: trunk@63550 -
This commit is contained in:
pascal 2020-07-13 05:56:14 +00:00
parent 681f4223cc
commit b8d03d0e29

View File

@ -1100,7 +1100,7 @@ begin
pEndLine := pStartLine
else
// pEndLine seems to be the first line after the change
pEndLine := pEndLine - 1;
pEndLine := Max(1, pEndLine - 1);
lEndLine := pEndLine;
FColumnCache[ToIdx(lEndLine)] := FirstCharacterColumn[ToIdx(lEndLine)];
x := FColumnCache[ToIdx(lEndLine)];