diff options
| author | nyamatongwe <devnull@localhost> | 2011-02-08 10:20:53 +1100 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2011-02-08 10:20:53 +1100 |
| commit | f51df2ca59cf06951c2cd422e593081a84bd22f7 (patch) | |
| tree | 3e80cae6895b941f681a46a3eb3b77ec1ed2fcdd | |
| parent | 8afc6a282bcccfec040dc252e7ebcd0710152d1c (diff) | |
| download | scintilla-mirror-f51df2ca59cf06951c2cd422e593081a84bd22f7.tar.gz | |
Fixed bug where the last line of file is a fold end and was not included
in the collapsed fold.
| -rw-r--r-- | lexers/LexD.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexD.cxx b/lexers/LexD.cxx index c9ef39343..4b7d08daf 100644 --- a/lexers/LexD.cxx +++ b/lexers/LexD.cxx @@ -493,7 +493,7 @@ void SCI_METHOD LexerD::Fold(unsigned int startPos, int length, int initStyle, I levelNext--; } } - if (atEOL) { + if (atEOL || (i == endPos-1)) { if (options.foldComment) { // Handle nested comments int nc; nc = styler.GetLineState(lineCurrent); |
