From 10def3f7edb3ee8d650abac7137d588be1fdeb31 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 1 Mar 2005 09:47:48 +0000 Subject: 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. --- src/StyleContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3