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