diff options
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 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++; } |