aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-16 21:15:03 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-16 21:15:03 +0200
commit26e2c1db0df35df1affa558efc12d2bcfd7718e2 (patch)
tree7b1b65e1aafd93ab4c7d0681ff45c28de154b4af /libbb/lineedit.c
parentb8909c52fe850d2731326534822164c2f5258bf5 (diff)
downloadbusybox-w32-26e2c1db0df35df1affa558efc12d2bcfd7718e2.tar.gz
busybox-w32-26e2c1db0df35df1affa558efc12d2bcfd7718e2.tar.bz2
busybox-w32-26e2c1db0df35df1affa558efc12d2bcfd7718e2.zip
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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 9f2d65717..72a1786ff 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -282,9 +282,8 @@ static wchar_t adjust_width_and_validate_wc(wchar_t wc)
282 int w = 1; 282 int w = 1;
283 283
284 if (unicode_status == UNICODE_ON) { 284 if (unicode_status == UNICODE_ON) {
285 if (unicode_is_raw_byte(wc) 285 if (wc > CONFIG_LAST_SUPPORTED_WCHAR) {
286 || (CONFIG_LAST_SUPPORTED_WCHAR && wc > CONFIG_LAST_SUPPORTED_WCHAR) 286 /* note: also true for unicode_is_raw_byte(wc) */
287 ) {
288 goto subst; 287 goto subst;
289 } 288 }
290 w = wcwidth(wc); 289 w = wcwidth(wc);