diff options
author | nyamatongwe <devnull@localhost> | 2008-09-07 05:21:03 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2008-09-07 05:21:03 +0000 |
commit | 8e6418b3a879f40731404a7ed709bf5779b55b3a (patch) | |
tree | ced5ebabc188d755ee8ee0ac7c00ec47ef6ec2c6 /src | |
parent | 68097bb2e87b5da999c617bf377b8c711df50cb7 (diff) | |
download | scintilla-mirror-8e6418b3a879f40731404a7ed709bf5779b55b3a.tar.gz |
Fix from Sergiu Dotenco for bug #2096849 incorrect folding when a comment
or a blank line that precedes a heading.
Diffstat (limited to 'src')
-rw-r--r-- | src/LexTeX.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexTeX.cxx b/src/LexTeX.cxx index e28857a35..18c99ab78 100644 --- a/src/LexTeX.cxx +++ b/src/LexTeX.cxx @@ -395,7 +395,7 @@ static void FoldTexDoc(unsigned int startPos, int length, int, WordList *[], Acc levelCurrent += classifyFoldPointTeXPaired(buffer)+classifyFoldPointTeXUnpaired(buffer); } - if((ch == '\r' || ch=='\n') && (chNext == '\\')){ + if (levelCurrent > SC_FOLDLEVELBASE && ((ch == '\r' || ch=='\n') && (chNext == '\\'))) { ParseTeXCommand(i+1, styler, buffer); levelCurrent -= classifyFoldPointTeXUnpaired(buffer); } |