From fbffd86f85445623a6a8981a93d8a9f763d98af7 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 19 Jul 2017 08:40:17 +0200 Subject: [PATCH] Add an assert to try to get more info on #1506 --- src/selection.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/selection.cc b/src/selection.cc index 5c8f2707..a2c53b59 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -112,6 +112,7 @@ Iterator merge_overlapping(Iterator begin, Iterator end, size_t& main, OverlapsF begin[i] = std::move(begin[j]); } } + kak_assert(std::is_sorted(begin, begin + i +1, compare_selections)); return begin + i + 1; }