diff options
author | Rob Landley <rob@landley.net> | 2015-12-27 14:41:30 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-12-27 14:41:30 -0600 |
commit | 4b4ab6a50998219cd94139c5669ef9a624c8f58f (patch) | |
tree | 3a1e0812da0cfc3c8f8040a381e763531c1026ba /lib/linestack.c | |
parent | 6769f8eb580aa2ecac4009fcde4a113e0476de74 (diff) | |
download | toybox-4b4ab6a50998219cd94139c5669ef9a624c8f58f.tar.gz |
Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY,
and add test_scankey.
Diffstat (limited to 'lib/linestack.c')
-rw-r--r-- | lib/linestack.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |