From d59b53b5b56d5e4632ca0b0876d902ff4a96ee63 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 15 Feb 2002 10:58:06 +0000 Subject: Does not attempt to lex or fold empty ranges. --- src/ScintillaBase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 9e98091c0..0dabb5393 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -391,7 +391,7 @@ void ScintillaBase::Colourise(int start, int end) { styleStart = styler.StyleAt(start - 1); styler.SetCodePage(pdoc->dbcsCodePage); - if (lexCurrent) { // Should always succeed as null lexer should always be available + if (lexCurrent && (len > 0)) { // Should always succeed as null lexer should always be available lexCurrent->Lex(start, len, styleStart, keyWordLists, styler); styler.Flush(); if (styler.GetPropertyInt("fold")) { -- cgit v1.2.3