SynEdit: fixed an issue with unfolding, if fold starts on very first line (display was not repainted)

git-svn-id: trunk@22607 -
This commit is contained in:
martin 2009-11-15 22:06:54 +00:00
parent 3618f253b7
commit e3156cd675

View File

@ -3321,7 +3321,8 @@ begin
else inc(ColIndex);
continue;
end;
r2 := fFoldTree.RemoveFoldForLine(AStartIndex+1, False, ColIndex) - 1;
r2 := fFoldTree.RemoveFoldForLine(AStartIndex+1, False, ColIndex);
if r2 > 0 then dec(r2);
if (r < 0) or (r2 < r) then r := r2;
if down
then dec(ColIndex)