SynEdit: fix issue with longest line info (cached line num was not updated). Horiz scrollbar sometimes disappeared after line was deleted

git-svn-id: trunk@57081 -
This commit is contained in:
martin 2018-01-14 01:07:17 +00:00
parent ab151dba5a
commit 9d51568748

View File

@ -251,7 +251,7 @@ begin
FIndexOfLongestLine := FIndexOfLongestLine + ACount;
if ACount < 0 then begin
if (FIndexOfLongestLine >= AIndex) and (FIndexOfLongestLine < AIndex-ACount) then
if (FIndexOfLongestLine >= AIndex+ACount) and (FIndexOfLongestLine < AIndex) then
FIndexOfLongestLine := -1;
if (FFirstUnknownLongestLine >= 0) then begin
if (AIndex < FFirstUnknownLongestLine) then