1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-24 03:56:32 +03:00

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;
} }
beg_pos = end_it->end_coord(); if (beg_pos != end_it->end_coord())
beg_pos = end_it->end_coord();
else
++end_it;
} }
} }
}; };