summaryrefslogtreecommitdiff
path: root/src/selection.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-07-19 08:40:17 +0200
committerMaxime Coste <mawww@kakoune.org>2017-07-19 08:40:17 +0200
commitfbffd86f85445623a6a8981a93d8a9f763d98af7 (patch)
tree4dcc3a3fac03093f96adab07b8a2c101ebf1816a /src/selection.cc
parent7b96d5699620848ac7fdc7c88b65405c0540e893 (diff)
Add an assert to try to get more info on #1506
Diffstat (limited to 'src/selection.cc')
-rw-r--r--src/selection.cc1
1 files changed, 1 insertions, 0 deletions
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;
}