From 02a80556cc80f6b5bfd704184d4b450973d65b19 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 19 Aug 2010 08:28:46 +1000 Subject: Ensure styling committed when lexers call StyleContext::Complete. --- lexlib/StyleContext.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lexlib/StyleContext.h') diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h index 8b1345432..15d216bd1 100644 --- a/lexlib/StyleContext.h +++ b/lexlib/StyleContext.h @@ -74,6 +74,7 @@ public: } void Complete() { styler.ColourTo(currentPos - 1, state); + styler.Flush(); } bool More() const { return currentPos < endPos; -- cgit v1.2.3