mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 07:55:58 +02:00
SynEdit: Markup fold color, fix empty lines before "last line close", part of patch 20 from issue #30421 by Pascal R.
git-svn-id: trunk@54153 -
This commit is contained in:
parent
db9e91ddf7
commit
21853b8fc0
@ -439,6 +439,10 @@ var
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
// ignore implicit close nodes at end of line, especially if line is empty
|
||||
// or at least has less characters as vertical line is on
|
||||
if not(sfaCloseForNextLine in ANode.FoldAction) then begin
|
||||
SetFoldColorInfosCount(FFoldColorInfosCount + 1);
|
||||
with FFoldColorInfos[FFoldColorInfosCount - 1] do begin
|
||||
Border := False;
|
||||
@ -453,6 +457,7 @@ var
|
||||
ColorIdx := -1;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
var
|
||||
LineIdx,i,j,lvlB,lvlA : integer;
|
||||
|
Loading…
Reference in New Issue
Block a user