aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-03-01 09:47:48 +0000
committernyamatongwe <devnull@localhost>2005-03-01 09:47:48 +0000
commit10def3f7edb3ee8d650abac7137d588be1fdeb31 (patch)
treed9e4a9fdbe76d8ef73ebb691a0aa9d6545782a65
parent7ae759fe5a837f1dec1883b6df02b7248d476e92 (diff)
downloadscintilla-mirror-10def3f7edb3ee8d650abac7137d588be1fdeb31.tar.gz
Patch from Jan Martin Pettersen to ensure lexers only see the bits in each
style byte they are interested in and not of any other indicators added by the container.
-rw-r--r--src/StyleContext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StyleContext.h b/src/StyleContext.h
index aedebbc01..d34c89422 100644
--- a/src/StyleContext.h
+++ b/src/StyleContext.h
@@ -45,7 +45,7 @@ public:
currentPos(startPos),
atLineStart(true),
atLineEnd(false),
- state(initStyle),
+ state(initStyle & chMask), // Mask off all bits which aren't in the chMask.
chPrev(0),
ch(0),
chNext(0) {