diff options
author | nyamatongwe <devnull@localhost> | 2001-08-17 22:05:23 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-08-17 22:05:23 +0000 |
commit | e95045fe65ebcd1b058068aea2ec87b73204eb0d (patch) | |
tree | 47e6dbba30038df2652368bbdbb7726841ea3875 /src/LexPython.cxx | |
parent | dde361cca0bc1d0f8a886810f14f332c1c6422ad (diff) | |
download | scintilla-mirror-e95045fe65ebcd1b058068aea2ec87b73204eb0d.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 |