diff options
author | nyamatongwe <unknown> | 2001-08-10 10:37:02 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-10 10:37:02 +0000 |
commit | 94011bc80e53c2a66a256af7ed3f007a1f446726 (patch) | |
tree | f156846111ec1b26145f29678beb18e7d338292f /src/LexPython.cxx | |
parent | f095427c97c004909e86e510b7c2beca5b4830ce (diff) | |
download | scintilla-mirror-94011bc80e53c2a66a256af7ed3f007a1f446726.tar.gz |
Folder processes last line of document now.
Comments in column 0 are never headers.
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r-- | src/LexPython.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 6c5eed148..ddff03e94 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -366,7 +366,7 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse // Process all characters to end of requested range or end of any triple quote // or comment that hangs over the end of the range - for (int i = startPos; i < lengthDoc && ((lineCurrent < maxLines) || prevQuote || prevComment); i++) { + for (int i = startPos; i < lengthDoc && ((lineCurrent <= maxLines) || prevQuote || prevComment); i++) { // Next character char ch = chNext; @@ -384,7 +384,8 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse int quote_start = (quote && !prevQuote); int quote_continue = (quote && prevQuote); int comment = IsCommentLine(lineCurrent, styler); - int comment_start = (comment && !prevComment && IsCommentLine(lineNext, styler)); + int comment_start = (comment && !prevComment && + IsCommentLine(lineNext, styler) && (lev > SC_FOLDLEVELBASE)); int comment_continue = (comment && prevComment); if (quote_start) { |