diff options
author | Marko Njezic <unknown> | 2012-06-08 01:09:13 +0200 |
---|---|---|
committer | Marko Njezic <unknown> | 2012-06-08 01:09:13 +0200 |
commit | 10463d5089e7e375501efc8349e55d25a5f00f46 (patch) | |
tree | f2e3d67b8d41162d668801ba17e13414f1883506 /lexers/LexCPP.cxx | |
parent | 4cec67557dfaa31313b31f8250b2f7506f8b3f0e (diff) | |
download | scintilla-mirror-10463d5089e7e375501efc8349e55d25a5f00f46.tar.gz |
Bug #3533036. Properly mask state when determining previous
non whitespace character and counting visible characters in line.
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r-- | lexers/LexCPP.cxx | 2 |
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++; } |