aboutsummaryrefslogtreecommitdiff
path: root/text-motions.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-10 11:46:59 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-10 11:46:59 +0200
commit18aa993466ab857b2a56612dabd243992e987998 (patch)
tree4e7d4ca1df42eb25ed65bea36894595766e7b22f /text-motions.c
parentdeca6f4d03d36e4980715ae6709f244f381b1175 (diff)
downloadvis-18aa993466ab857b2a56612dabd243992e987998.tar.gz
vis-18aa993466ab857b2a56612dabd243992e987998.tar.xz
Add comments where appropriate
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;
}