summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-07-14 21:41:29 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-07-14 21:41:29 +0100
commitec37adc5233e2f7ecb9763da2e838eefea0da9c6 (patch)
treed996c62b798fb9f924d645bdc30aac4df66c37d1
parent85d971f062ef4145f7872e18e78e684c83d93f59 (diff)
Fix bug in nested highlighting
-rw-r--r--src/highlighters.cc2
1 files changed, 1 insertions, 1 deletions
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);