aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexCPP.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r--src/LexCPP.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx
index 49dad8b9b..77d371b90 100644
--- a/src/LexCPP.cxx
+++ b/src/LexCPP.cxx
@@ -445,6 +445,9 @@ static void FoldCppDoc(unsigned int startPos, int length, int initStyle,
visibleChars = 0;
}
}
+ if ((unsigned)styler.Length() == endPos) {
+ styler.SetLevel(lineCurrent, levelCurrent);
+ }
}
static const char * const cppWordLists[] = {