aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-02-08 10:20:53 +1100
committernyamatongwe <devnull@localhost>2011-02-08 10:20:53 +1100
commitf51df2ca59cf06951c2cd422e593081a84bd22f7 (patch)
tree3e80cae6895b941f681a46a3eb3b77ec1ed2fcdd
parent8afc6a282bcccfec040dc252e7ebcd0710152d1c (diff)
downloadscintilla-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.cxx2
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);