diff options
author | nyamatongwe <unknown> | 2002-02-15 10:58:06 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-02-15 10:58:06 +0000 |
commit | 18bac0b585d4298a534e8bc50ef99f9f17332162 (patch) | |
tree | 48a8724c129ac5da66b6ef0510c70f0876a87446 /src | |
parent | 03dea17fe7b2be066ca8ab3451b92bb1b9fa73ae (diff) | |
download | scintilla-mirror-18bac0b585d4298a534e8bc50ef99f9f17332162.tar.gz |
Does not attempt to lex or fold empty ranges.
Diffstat (limited to 'src')
-rw-r--r-- | src/ScintillaBase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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")) { |