diff options
author | nyamatongwe <unknown> | 2007-12-12 06:13:48 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-12-12 06:13:48 +0000 |
commit | f74421cafc68d15cea2617c1898baea59a6fe917 (patch) | |
tree | bf92d1810442777c47a74324f0bb0e721cfc0087 | |
parent | 21f54a4c47ad89ab870be19b4db5ca1914992608 (diff) | |
download | scintilla-mirror-f74421cafc68d15cea2617c1898baea59a6fe917.tar.gz |
Ensure folding set for last line when ends without line end character.
Bug #1847057.
-rw-r--r-- | src/LexCPP.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index bf351280f..49dad8b9b 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -424,7 +424,9 @@ static void FoldCppDoc(unsigned int startPos, int length, int initStyle, levelNext--; } } - if (atEOL) { + if (!IsASpace(ch)) + visibleChars++; + if (atEOL || (i == endPos-1)) { int levelUse = levelCurrent; if (foldAtElse) { levelUse = levelMinCurrent; @@ -442,8 +444,6 @@ static void FoldCppDoc(unsigned int startPos, int length, int initStyle, levelMinCurrent = levelCurrent; visibleChars = 0; } - if (!IsASpace(ch)) - visibleChars++; } } |