Fix regions highlighter infinite loops when regex matches empty ranges

This commit is contained in:
Maxime Coste 2017-10-08 11:48:58 +08:00
parent c95bd83ea1
commit 654e3fcb46

View File

@ -1673,7 +1673,10 @@ struct RegionMatches
--recurse_level; --recurse_level;
} }
if (beg_pos != end_it->end_coord())
beg_pos = end_it->end_coord(); beg_pos = end_it->end_coord();
else
++end_it;
} }
} }
}; };