aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarko Njezic <devnull@localhost>2012-06-08 01:09:13 +0200
committerMarko Njezic <devnull@localhost>2012-06-08 01:09:13 +0200
commitc03e2e87fa68fb21817837d5aabc245cea1abb1e (patch)
tree4f91cdf2388a582f0b2bdfc35ff6119e77443aa0
parent5651b27ede21b8f291794a16997ec50022c16bd9 (diff)
downloadscintilla-mirror-c03e2e87fa68fb21817837d5aabc245cea1abb1e.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++;
}