diff options
author | nyamatongwe <unknown> | 2001-08-17 22:05:23 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-17 22:05:23 +0000 |
commit | bb8aafa3d98e49fb66d79cd2c37d2c46a26b451a (patch) | |
tree | 47e6dbba30038df2652368bbdbb7726841ea3875 /src/LexPython.cxx | |
parent | b740542ae719e448e9d60fdaed18e7aa0e924588 (diff) | |
download | scintilla-mirror-bb8aafa3d98e49fb66d79cd2c37d2c46a26b451a.tar.gz |
When looping over whitespace/comment lines, use the same indent level for
all whitespace lines.
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 |