aboutsummaryrefslogtreecommitdiff
path: root/text-motions.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-motions.c')
-rw-r--r--text-motions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-motions.c b/text-motions.c
index b2785d8..c453cab 100644
--- a/text-motions.c
+++ b/text-motions.c
@@ -89,7 +89,7 @@ size_t text_line_finish(Text *txt, size_t pos) {
Iterator it = text_iterator_get(txt, text_line_end(txt, pos));
do text_iterator_byte_prev(&it, NULL);
while (text_iterator_byte_get(&it, &c) && c != '\n' && c != '\r' && isspace(c));
- if (!isutf8(c))
+ if (!ISUTF8(c))
text_iterator_char_prev(&it, NULL);
return it.pos;
}