From 2987e5b5a055be781361d4744cb9b8c8ccdd06be Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 6 Sep 2006 18:55:43 +0000 Subject: [PATCH] Fixed SD2-979: Enums are not colapsed when executing 'Show definitions only' command. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1773 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/TextEditor/Gui/Editor/ParserFoldingStrategy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/Base/Project/Src/TextEditor/Gui/Editor/ParserFoldingStrategy.cs b/src/Main/Base/Project/Src/TextEditor/Gui/Editor/ParserFoldingStrategy.cs index fb8c57935b..73c521a625 100644 --- a/src/Main/Base/Project/Src/TextEditor/Gui/Editor/ParserFoldingStrategy.cs +++ b/src/Main/Base/Project/Src/TextEditor/Gui/Editor/ParserFoldingStrategy.cs @@ -24,7 +24,7 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor if (cRegion.IsEmpty) cRegion = c.Region; if (cRegion.BeginLine < cRegion.EndLine) { FoldMarker newFoldMarker = new FoldMarker(document, cRegion.BeginLine - 1, cRegion.BeginColumn - 1, - cRegion.EndLine - 1, cRegion.EndColumn, FoldType.TypeBody); + cRegion.EndLine - 1, cRegion.EndColumn, c.ClassType == ClassType.Enum ? FoldType.MemberBody : FoldType.TypeBody); if (newFoldMarker.Length > 0) { foldMarkers.Add(newFoldMarker); }