aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/StyleContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/StyleContext.h')
-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) {