From ec37adc5233e2f7ecb9763da2e838eefea0da9c6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 14 Jul 2014 21:41:29 +0100 Subject: [PATCH] Fix bug in nested highlighting --- src/highlighters.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highlighters.cc b/src/highlighters.cc index 6e227187..2779b4d3 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -117,7 +117,7 @@ void apply_highlighter(const Context& context, if (atom_it->end() >= end) { if (is_replaced or atom_it->end() == end) - beg_idx = atom_it - line.begin(); + end_idx = atom_it - line.begin() + 1; else { atom_it = ++line.split(atom_it, end);