summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/display.c b/display.c
index 47ff061..fe08861 100644
--- a/display.c
+++ b/display.c
@@ -2380,6 +2380,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));