Fix bug in nested highlighting

This commit is contained in:
Maxime Coste 2014-07-14 21:41:29 +01:00
parent 85d971f062
commit ec37adc523

View File

@ -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);