From 3aeb924fad62e807442dda2e90faf20558ecb36a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 29 Jul 2001 01:56:24 +0000 Subject: Fixed bug where seeking back to start of tag only when to position 1 not position 0. --- src/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index be1da389c..44ac25d61 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -370,7 +370,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty // If inside a tag, it may be a script tag, so reread from the start to ensure any language tags are seen if (InTagState(state)) { - while ((startPos > 1) && (InTagState(styler.StyleAt(startPos - 1)))) { + while ((startPos > 0) && (InTagState(styler.StyleAt(startPos - 1)))) { startPos--; length++; } -- cgit v1.2.3