summaryrefslogtreecommitdiffstats
path: root/src/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utf8.c')
-rw-r--r--src/utf8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utf8.c b/src/utf8.c
index 6ec8eca..64b59d1 100644
--- a/src/utf8.c
+++ b/src/utf8.c
@@ -313,8 +313,9 @@ int utf8_width(char *s)
return utf8_widthtab[cur].width;
else
low = cur + 1;
- } else
+ } else {
high = cur - 1;
+ }
}
while (low <= high);