Synedit: Fixed Fold-contextmenu for ifdef, region

git-svn-id: trunk@19759 -
This commit is contained in:
martin 2009-05-02 11:06:58 +00:00
parent 8cd03de95a
commit d26b4ccd22

View File

@ -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