From fb7a1c839ce59df8423c94626cfabe9bf0e5c2e8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 14 May 2006 12:05:02 +0000 Subject: Ensure initial style parameter to lexers has indicator bits masked off to avoid bad lexing when indicators used. --- src/ScintillaBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3