Browse Source

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
shortcuts
Daniel Grunwald 20 years ago
parent
commit
2987e5b5a0
  1. 2
      src/Main/Base/Project/Src/TextEditor/Gui/Editor/ParserFoldingStrategy.cs

2
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.IsEmpty) cRegion = c.Region;
if (cRegion.BeginLine < cRegion.EndLine) { if (cRegion.BeginLine < cRegion.EndLine) {
FoldMarker newFoldMarker = new FoldMarker(document, cRegion.BeginLine - 1, cRegion.BeginColumn - 1, 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) { if (newFoldMarker.Length > 0) {
foldMarkers.Add(newFoldMarker); foldMarkers.Add(newFoldMarker);
} }

Loading…
Cancel
Save