summaryrefslogtreecommitdiffstats
path: root/scintilla/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2012-05-27 15:08:02 +0000
committerXhmikosR <xhmikosr@users.sourceforge.net>2012-05-27 15:08:02 +0000
commit9e03d34a5411bd1736e67f7d6a5a4a7ec4b42345 (patch)
tree10c2f7519222c810563a80f3e02e99bcd79401ee /scintilla/lexers/LexHTML.cxx
parent72f1da668f0176d3cbea477af14e3c0ab6cfa504 (diff)
downloadnotepad2-mod-9e03d34a5411bd1736e67f7d6a5a4a7ec4b42345.zip
notepad2-mod-9e03d34a5411bd1736e67f7d6a5a4a7ec4b42345.tar.gz
notepad2-mod-9e03d34a5411bd1736e67f7d6a5a4a7ec4b42345.tar.bz2
update scintilla (HG 9739512b19c4)
git-svn-id: https://notepad2-mod.googlecode.com/svn/trunk@741 28bd50df-7adb-d945-0439-6e466c6a13cc
Diffstat (limited to 'scintilla/lexers/LexHTML.cxx')
-rw-r--r--scintilla/lexers/LexHTML.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/scintilla/lexers/LexHTML.cxx b/scintilla/lexers/LexHTML.cxx
index 7bda6cf..fd781e7 100644
--- a/scintilla/lexers/LexHTML.cxx
+++ b/scintilla/lexers/LexHTML.cxx
@@ -2134,7 +2134,8 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
break;
default:
StateToPrint = statePrintForState(state, inScriptType);
- styler.ColourTo(lengthDoc - 1, StateToPrint);
+ if (static_cast<int>(styler.GetStartSegment()) < lengthDoc)
+ styler.ColourTo(lengthDoc - 1, StateToPrint);
break;
}