aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
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);