From 1a0760897c81afebc3e9d2ead502d09eff9479ee Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 23 Apr 2000 22:58:26 +0000 Subject: Ensured lexers do not style any more than they have been asked to. --- src/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LexHTML.cxx') 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); -- cgit v1.2.3