diff options
| author | nyamatongwe <devnull@localhost> | 2002-02-15 10:58:06 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-02-15 10:58:06 +0000 |
| commit | d59b53b5b56d5e4632ca0b0876d902ff4a96ee63 (patch) | |
| tree | 48a8724c129ac5da66b6ef0510c70f0876a87446 /src/ScintillaBase.cxx | |
| parent | 2b6a1d2f499826155dd023c54e5321f51f1356a0 (diff) | |
| download | scintilla-mirror-d59b53b5b56d5e4632ca0b0876d902ff4a96ee63.tar.gz | |
Does not attempt to lex or fold empty ranges.
Diffstat (limited to 'src/ScintillaBase.cxx')
| -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")) { |
