aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexCPP.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-12-12 06:13:48 +0000
committernyamatongwe <devnull@localhost>2007-12-12 06:13:48 +0000
commit95dd55241b4b5bb841797ae110c8cb7980349cf8 (patch)
treebf92d1810442777c47a74324f0bb0e721cfc0087 /src/LexCPP.cxx
parentffa2c5b99b0eb534498a550d11ac5debc1204c32 (diff)
downloadscintilla-mirror-95dd55241b4b5bb841797ae110c8cb7980349cf8.tar.gz
Ensure folding set for last line when ends without line end character.
Bug #1847057.
Diffstat (limited to 'src/LexCPP.cxx')
-rw-r--r--src/LexCPP.cxx6
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++;
}
}