mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 04:24:48 +03:00
Add another assert to try to catch #1506
This commit is contained in:
parent
94a0c9bb45
commit
797a0cb062
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user