diff options
author | nyamatongwe <devnull@localhost> | 2006-05-14 12:05:02 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-05-14 12:05:02 +0000 |
commit | 174c5724047c72260296d9cfd6914e48392654bd (patch) | |
tree | 0d0317de7134a3047f9fe08541e54a503ad41d41 /src | |
parent | 8976ba9e3b241945e6d2c4cecb2979974b0a1dd6 (diff) | |
download | scintilla-mirror-174c5724047c72260296d9cfd6914e48392654bd.tar.gz |
Ensure initial style parameter to lexers has indicator bits masked off
to avoid bad lexing when indicators used.
Diffstat (limited to 'src')
-rw-r--r-- | src/ScintillaBase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 2d13efaba..bcb0a77e2 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -469,7 +469,7 @@ void ScintillaBase::Colourise(int start, int end) { int styleStart = 0; if (start > 0) - styleStart = styler.StyleAt(start - 1); + styleStart = styler.StyleAt(start - 1) & pdoc->stylingBitsMask; styler.SetCodePage(pdoc->dbcsCodePage); if (lexCurrent && (len > 0)) { // Should always succeed as null lexer should always be available |