diff options
-rw-r--r-- | contrib/libreadline/display.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/libreadline/display.c b/contrib/libreadline/display.c index 5af831b..927f927 100644 --- a/contrib/libreadline/display.c +++ b/contrib/libreadline/display.c @@ -2381,6 +2381,8 @@ _rl_col_width (str, start, end) if (end <= start) return 0; + if (MB_CUR_MAX == 1 || rl_byte_oriented) + return (end - start); memset (&ps, 0, sizeof (mbstate_t)); |