mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:19:16 +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;
|
FIndexOfLongestLine := FIndexOfLongestLine + ACount;
|
||||||
|
|
||||||
if ACount < 0 then begin
|
if ACount < 0 then begin
|
||||||
if (FIndexOfLongestLine >= AIndex) and (FIndexOfLongestLine < AIndex-ACount) then
|
if (FIndexOfLongestLine >= AIndex+ACount) and (FIndexOfLongestLine < AIndex) then
|
||||||
FIndexOfLongestLine := -1;
|
FIndexOfLongestLine := -1;
|
||||||
if (FFirstUnknownLongestLine >= 0) then begin
|
if (FFirstUnknownLongestLine >= 0) then begin
|
||||||
if (AIndex < FFirstUnknownLongestLine) then
|
if (AIndex < FFirstUnknownLongestLine) then
|
||||||
|
Loading…
Reference in New Issue
Block a user