diff options
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r-- | src/LexPython.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 3ab7a1121..3468a5e47 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -411,6 +411,8 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse styler.SetLevel(lineNext, Platform::Maximum(indentCurrent, indentNext)); lineNext++; indentNext = styler.IndentAmount(lineNext, &spaceFlags, NULL); + if (indentNext & SC_FOLDLEVELWHITEFLAG) + indentNext = SC_FOLDLEVELWHITEFLAG | indentCurrentLevel; } // Set fold header on non-quote/non-comment line |