From 4b4ab6a50998219cd94139c5669ef9a624c8f58f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 27 Dec 2015 14:41:30 -0600 Subject: Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY, and add test_scankey. --- lib/linestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/linestack.c') diff --git a/lib/linestack.c b/lib/linestack.c index b06c97e7..cc6b6724 100644 --- a/lib/linestack.c +++ b/lib/linestack.c @@ -88,7 +88,7 @@ int crunch_str(char **str, int width, FILE *out, for (end = start = *str; *end;) { wchar_t wc; - if (width>=0 && columns+lowlen>width) break; + if (columns+lowlen>width) break; bytes = mbrtowc(&wc, end, 99, 0); if (bytes<0 || wc<32 || (col = wcwidth(wc))<0) { -- cgit v1.2.3