diff options
| author | ActiveState <devnull@localhost> | 2015-10-14 14:55:30 +1100 |
|---|---|---|
| committer | ActiveState <devnull@localhost> | 2015-10-14 14:55:30 +1100 |
| commit | 05fbfe575baf4ae8dbf3d13419b907af8b619cb7 (patch) | |
| tree | 79c080001cebb5ea0f39ab978190976a63614a0b /lexers | |
| parent | 8a3fe684b8bcdf60b10876391c698b89c29b866c (diff) | |
| download | scintilla-mirror-05fbfe575baf4ae8dbf3d13419b907af8b619cb7.tar.gz | |
Bug [#1766]. Treat line starts consistently to always highlight *foo* or similar
at line start.
Diffstat (limited to 'lexers')
| -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) { |
