mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 13:56:01 +02:00
Synedit: Fixed Fold-contextmenu for ifdef, region
git-svn-id: trunk@19759 -
This commit is contained in:
parent
8cd03de95a
commit
d26b4ccd22
@ -2717,7 +2717,8 @@ begin
|
||||
if FCatchNodeInfo then begin // exclude subblocks, because they do not increase the foldlevel yet
|
||||
GrowNodeInfoList;
|
||||
InitNode(FNodeInfoList[FNodeInfoCount], +1, ABlockType);
|
||||
Include(FNodeInfoList[FNodeInfoCount].FoldAction, sfaOpen);
|
||||
FNodeInfoList[FNodeInfoCount].FoldAction :=
|
||||
FNodeInfoList[FNodeInfoCount].FoldAction + [sfaOpen, sfaFold];
|
||||
inc(FNodeInfoCount);
|
||||
end;
|
||||
case ABlockType of
|
||||
@ -2734,7 +2735,8 @@ begin
|
||||
if FCatchNodeInfo then begin // exclude subblocks, because they do not increase the foldlevel yet
|
||||
GrowNodeInfoList;
|
||||
InitNode(FNodeInfoList[FNodeInfoCount], +1, ABlockType);
|
||||
Include(FNodeInfoList[FNodeInfoCount].FoldAction, sfaClose);
|
||||
FNodeInfoList[FNodeInfoCount].FoldAction :=
|
||||
FNodeInfoList[FNodeInfoCount].FoldAction + [sfaClose, sfaFold];
|
||||
inc(FNodeInfoCount);
|
||||
end;
|
||||
case ABlockType of
|
||||
|
Loading…
Reference in New Issue
Block a user