mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-19 17:31:44 +03:00
Fix regions highlighter infinite loops when regex matches empty ranges
This commit is contained in:
parent
c95bd83ea1
commit
654e3fcb46
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user