diff options
author | ActiveState <unknown> | 2015-10-14 14:55:30 +1100 |
---|---|---|
committer | ActiveState <unknown> | 2015-10-14 14:55:30 +1100 |
commit | a4777c79f37a179047c5ee4eb11406ba47c514b2 (patch) | |
tree | ff5fb5e7789a722241e8584fb9105be3a5f8f50e /lexers/LexMarkdown.cxx | |
parent | 715e7eed3523cb08dd1b92a4e838a09d807a730f (diff) | |
download | scintilla-mirror-a4777c79f37a179047c5ee4eb11406ba47c514b2.tar.gz |
Bug [#1766]. Treat line starts consistently to always highlight *foo* or similar
at line start.
Diffstat (limited to 'lexers/LexMarkdown.cxx')
-rw-r--r-- | lexers/LexMarkdown.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexMarkdown.cxx b/lexers/LexMarkdown.cxx index 781f85deb..a1a50f20e 100644 --- a/lexers/LexMarkdown.cxx +++ b/lexers/LexMarkdown.cxx @@ -114,7 +114,7 @@ static bool HasPrevLineContent(StyleContext &sc) { } static bool AtTermStart(StyleContext &sc) { - return sc.currentPos == 0 || isspacechar(sc.chPrev); + return sc.currentPos == 0 || sc.chPrev == 0 || isspacechar(sc.chPrev); } static bool IsValidHrule(const Sci_PositionU endPos, StyleContext &sc) { |