aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-05-14 12:05:02 +0000
committernyamatongwe <unknown>2006-05-14 12:05:02 +0000
commitfb7a1c839ce59df8423c94626cfabe9bf0e5c2e8 (patch)
tree0d0317de7134a3047f9fe08541e54a503ad41d41 /src
parentcc28f7a87639c276e49d75fb8079c363dc8687f1 (diff)
downloadscintilla-mirror-fb7a1c839ce59df8423c94626cfabe9bf0e5c2e8.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.cxx2
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