diff options
author | Denys Vlasenko | 2010-05-16 21:15:03 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-05-16 21:15:03 +0200 |
commit | 26e2c1db0df35df1affa558efc12d2bcfd7718e2 (patch) | |
tree | 7b1b65e1aafd93ab4c7d0681ff45c28de154b4af /libbb/lineedit.c | |
parent | b8909c52fe850d2731326534822164c2f5258bf5 (diff) | |
download | busybox-26e2c1db0df35df1affa558efc12d2bcfd7718e2.zip busybox-26e2c1db0df35df1affa558efc12d2bcfd7718e2.tar.gz |
stop using LAST_SUPPORTED_WCHAR and CONFIG_LAST_SUPPORTED_WCHAR, it's confusing
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 9f2d657..72a1786 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c @@ -282,9 +282,8 @@ static wchar_t adjust_width_and_validate_wc(wchar_t wc) int w = 1; if (unicode_status == UNICODE_ON) { - if (unicode_is_raw_byte(wc) - || (CONFIG_LAST_SUPPORTED_WCHAR && wc > CONFIG_LAST_SUPPORTED_WCHAR) - ) { + if (wc > CONFIG_LAST_SUPPORTED_WCHAR) { + /* note: also true for unicode_is_raw_byte(wc) */ goto subst; } w = wcwidth(wc); |