diff options
Diffstat (limited to 'lib/linestack.c')
-rw-r--r-- | lib/linestack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/linestack.c b/lib/linestack.c index 0fc83e6b..e6ae1b57 100644 --- a/lib/linestack.c +++ b/lib/linestack.c @@ -93,10 +93,9 @@ int crunch_str(char **str, int width, FILE *out, char *escmore, { int columns = 0, col, bytes; char *start, *end; + unsigned wc; for (end = start = *str; *end; columns += col, end += bytes) { - wchar_t wc; - if ((bytes = utf8towc(&wc, end, 4))>0 && (col = wcwidth(wc))>=0) { if (!escmore || wc>255 || !strchr(escmore, wc)) { if (width-columns<col) break; |