mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:19:37 +02:00
synedit codefolding: fixed first line number of folded block
git-svn-id: trunk@9994 -
This commit is contained in:
parent
af761c503e
commit
037fd36454
@ -2982,7 +2982,7 @@ begin
|
||||
rcLine.Top := rcLine.Bottom;
|
||||
// erase the background and draw the line number string in one go
|
||||
{$IFDEF SYN_LAZARUS}
|
||||
if not TSynEditStringList(fLines).Folded[iLine] then begin
|
||||
if not TSynEditStringList(fLines).Folded[iLine-1] then begin
|
||||
s := fGutter.FormatLineNumber(iLine);
|
||||
Inc(rcLine.Bottom, fTextHeight);
|
||||
fTextDrawer.ExtTextOut(CodeFoldOffset+fGutter.LeftOffset,
|
||||
|
Loading…
Reference in New Issue
Block a user