aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-03-01 09:47:48 +0000
committernyamatongwe <unknown>2005-03-01 09:47:48 +0000
commit92ea597a1f70d1c34d66a77ff14ad1b881700860 (patch)
treed9e4a9fdbe76d8ef73ebb691a0aa9d6545782a65
parent685d4b0320ed00a9c95195260616bfbf211b3e96 (diff)
downloadscintilla-mirror-92ea597a1f70d1c34d66a77ff14ad1b881700860.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) {