mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 17:20:29 +02:00
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:
parent
ab151dba5a
commit
9d51568748
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user