summaryrefslogtreecommitdiff
path: root/src/selection.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-05-14 19:21:19 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-05-14 19:49:03 +0100
commitdb423e4a88be8799ce0cfae33ddbf4c6bae97e5f (patch)
tree2cb1a4eb27117889ed1d991b3949d5792ee19dcc /src/selection.cc
parentfbf7856e3ec40d58444d88fc9852db8e38cb68e7 (diff)
utf8::is_character_start takes directly the char value
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
}