From bb8aafa3d98e49fb66d79cd2c37d2c46a26b451a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 17 Aug 2001 22:05:23 +0000 Subject: When looping over whitespace/comment lines, use the same indent level for all whitespace lines. --- src/LexPython.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/LexPython.cxx') 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 -- cgit v1.2.3