aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarko Njezic <unknown>2012-06-08 01:09:13 +0200
committerMarko Njezic <unknown>2012-06-08 01:09:13 +0200
commit10463d5089e7e375501efc8349e55d25a5f00f46 (patch)
treef2e3d67b8d41162d668801ba17e13414f1883506
parent4cec67557dfaa31313b31f8250b2f7506f8b3f0e (diff)
downloadscintilla-mirror-10463d5089e7e375501efc8349e55d25a5f00f46.tar.gz
Bug #3533036. Properly mask state when determining previous
non whitespace character and counting visible characters in line.
-rw-r--r--lexers/LexCPP.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index 7d0990fd1..51752db85 100644
--- a/lexers/LexCPP.cxx
+++ b/lexers/LexCPP.cxx
@@ -918,7 +918,7 @@ void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle,
}
}
- if (!IsASpace(sc.ch) && !IsSpaceEquiv(sc.state)) {
+ if (!IsASpace(sc.ch) && !IsSpaceEquiv(MaskActive(sc.state))) {
chPrevNonWhite = sc.ch;
visibleChars++;
}