summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-07 06:45:33 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-07 06:45:33 -0800
commit35f6ab5a5aef3ad9c25f9ff618006e303920ee47 (patch)
tree174de3c0f7e67153b8b77dee652f05af4b3dc504
parent035f92c16c2e5a352a1dcde90c5c5b54d2be6152 (diff)
downloadreadline-35f6ab5a5aef3ad9c25f9ff618006e303920ee47.tar.gz
readline-35f6ab5a5aef3ad9c25f9ff618006e303920ee47.tar.bz2
readline-35f6ab5a5aef3ad9c25f9ff618006e303920ee47.zip
applied patch readline52-001
-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));