diff options
author | nyamatongwe <unknown> | 2000-04-23 22:58:26 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-04-23 22:58:26 +0000 |
commit | 1a0760897c81afebc3e9d2ead502d09eff9479ee (patch) | |
tree | d86be196f402ee62edae2b3158d5445da9275fe1 /src/LexHTML.cxx | |
parent | 944bf4364d72cef3c55f212628a3414ffcbf961c (diff) | |
download | scintilla-mirror-1a0760897c81afebc3e9d2ead502d09eff9479ee.tar.gz |
Ensured lexers do not style any more than they have been asked to.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r-- | src/LexHTML.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index e7431e322..653aa4653 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -261,7 +261,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty char chPrev2 = ' '; styler.StartSegment(startPos); int lengthDoc = startPos + length; - for (int i = startPos; i <= lengthDoc; i++) { + for (int i = startPos; i < lengthDoc; i++) { char ch = styler[i]; char chNext = styler.SafeGetCharAt(i + 1); char chNext2 = styler.SafeGetCharAt(i + 2); |