diff options
author | nyamatongwe <unknown> | 2001-07-29 01:56:24 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-07-29 01:56:24 +0000 |
commit | e659823930733ecc06eca4b39252c4024fc5fdd1 (patch) | |
tree | 6aebc67bf9141acd80bcb16abf8d6891649d7247 | |
parent | 55a278d5e189725b74bccdfb46b5028b89f64040 (diff) | |
download | scintilla-mirror-e659823930733ecc06eca4b39252c4024fc5fdd1.tar.gz |
Fixed bug where seeking back to start of tag only when to position 1
not position 0.
-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++; } |