aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2006-12-31 09:45:18 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2006-12-31 09:45:18 +0000
commita05ab6e2bb35402b2bae034a6487dd3955ede7da (patch)
tree321fe4df65bdc92f07c4832ff3dfd5a0cf2a4bfa
parent1c08c2b3fdb33ac107da2cbc477a33bfb81fc8e0 (diff)
downloadsrc-a05ab6e2bb35402b2bae034a6487dd3955ede7da.tar.gz
src-a05ab6e2bb35402b2bae034a6487dd3955ede7da.zip
Official patch 001
Notes
Notes: svn path=/vendor/libreadline/dist/; revision=165678
-rw-r--r--contrib/libreadline/display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/libreadline/display.c b/contrib/libreadline/display.c
index 47ff06159747..fe08861da73c 100644
--- a/contrib/libreadline/display.c
+++ b/contrib/libreadline/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));