aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-02-08 10:20:53 +1100
committernyamatongwe <unknown>2011-02-08 10:20:53 +1100
commit35416671e58c4ffc5b235330bcdefb86680f4d13 (patch)
tree107e52716c40cb5dfa1bb6daff886cb2cc4a124e
parent7b762082a0ed7e8d4aa2a2564bd85ed587b0ad90 (diff)
downloadscintilla-mirror-35416671e58c4ffc5b235330bcdefb86680f4d13.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);