summaryrefslogtreecommitdiff
path: root/src/selection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/selection.cc')
-rw-r--r--src/selection.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.cc b/src/selection.cc
index 3dee22ec..0d90cc35 100644
--- a/src/selection.cc
+++ b/src/selection.cc
@@ -162,8 +162,8 @@ void SelectionList::check_invariant() const
kak_assert(buffer.is_valid(sel.cursor()));
kak_assert(not buffer.is_end(sel.anchor()));
kak_assert(not buffer.is_end(sel.cursor()));
- kak_assert(utf8::is_character_start(buffer.iterator_at(sel.anchor())));
- kak_assert(utf8::is_character_start(buffer.iterator_at(sel.cursor())));
+ kak_assert(utf8::is_character_start(buffer.byte_at(sel.anchor())));
+ kak_assert(utf8::is_character_start(buffer.byte_at(sel.cursor())));
}
#endif
}