aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-07-29 01:56:24 +0000
committernyamatongwe <unknown>2001-07-29 01:56:24 +0000
commite659823930733ecc06eca4b39252c4024fc5fdd1 (patch)
tree6aebc67bf9141acd80bcb16abf8d6891649d7247 /src/LexHTML.cxx
parent55a278d5e189725b74bccdfb46b5028b89f64040 (diff)
downloadscintilla-mirror-e659823930733ecc06eca4b39252c4024fc5fdd1.tar.gz
Fixed bug where seeking back to start of tag only when to position 1
not position 0.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r--src/LexHTML.cxx2
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++;
}