DynamicSelectionList check that buffer end is not selected

This commit is contained in:
Maxime Coste 2013-06-03 14:26:05 +02:00
parent b51799a2b2
commit 24ffd6abae

View File

@ -28,6 +28,8 @@ void DynamicSelectionList::check_invariant() const
auto& sel = (*this)[i];
kak_assert(buffer.is_valid(sel.first()));
kak_assert(buffer.is_valid(sel.last()));
kak_assert(not buffer.is_end(sel.first()));
kak_assert(not buffer.is_end(sel.last()));
kak_assert(utf8::is_character_start(sel.first()));
kak_assert(utf8::is_character_start(sel.last()));
}