Add another assert to try to catch #1506

This commit is contained in:
Maxime Coste 2017-11-01 14:04:42 +08:00
parent 94a0c9bb45
commit 797a0cb062

View File

@ -122,6 +122,8 @@ Vector<Selection> compute_modified_ranges(Buffer& buffer, size_t timestamp)
auto forward_end = forward_sorted_until(change_it, changes.end()); auto forward_end = forward_sorted_until(change_it, changes.end());
auto backward_end = backward_sorted_until(change_it, changes.end()); auto backward_end = backward_sorted_until(change_it, changes.end());
kak_assert(std::is_sorted(ranges.begin(), ranges.end(), compare_selections));
size_t prev_size; size_t prev_size;
size_t dummy = 0; size_t dummy = 0;
if (forward_end >= backward_end) if (forward_end >= backward_end)