From a4777c79f37a179047c5ee4eb11406ba47c514b2 Mon Sep 17 00:00:00 2001 From: ActiveState Date: Wed, 14 Oct 2015 14:55:30 +1100 Subject: Bug [#1766]. Treat line starts consistently to always highlight *foo* or similar at line start. --- doc/ScintillaHistory.html | 4 ++++ lexers/LexMarkdown.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index f338b4a93..6ea38bc7d 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -512,6 +512,10 @@ Bug #1765.
  • + Markdown lexer treats line starts consistently to always highlight *foo* or similar at line start. + Bug #1766. +
  • +
  • Optimise marker redrawing by only drawing affected lines when markers shown in the text.
  • 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) { -- cgit v1.2.3