diff options
Diffstat (limited to 'lexers')
| -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); | 
