mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 13:17:18 +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;
|
||||||
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);
|
SetFoldColorInfosCount(FFoldColorInfosCount + 1);
|
||||||
with FFoldColorInfos[FFoldColorInfosCount - 1] do begin
|
with FFoldColorInfos[FFoldColorInfosCount - 1] do begin
|
||||||
Border := False;
|
Border := False;
|
||||||
@ -453,6 +457,7 @@ var
|
|||||||
ColorIdx := -1;
|
ColorIdx := -1;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
LineIdx,i,j,lvlB,lvlA : integer;
|
LineIdx,i,j,lvlB,lvlA : integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user