From 35416671e58c4ffc5b235330bcdefb86680f4d13 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 8 Feb 2011 10:20:53 +1100 Subject: Fixed bug where the last line of file is a fold end and was not included in the collapsed fold. --- lexers/LexD.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3