summaryrefslogtreecommitdiffstats
path: root/SOURCES/readline-6.0-wrap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/readline-6.0-wrap.patch')
-rw-r--r--SOURCES/readline-6.0-wrap.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/SOURCES/readline-6.0-wrap.patch b/SOURCES/readline-6.0-wrap.patch
new file mode 100644
index 0000000..f26ad5b
--- /dev/null
+++ b/SOURCES/readline-6.0-wrap.patch
@@ -0,0 +1,16 @@
+Index: lib/readline/display.c
+===================================================================
+--- lib/readline/display.c.orig
++++ lib/readline/display.c
+@@ -714,7 +714,10 @@ rl_redisplay ()
+ inv_lbreaks[++newlines] = temp;
+ #if defined (HANDLE_MULTIBYTE)
+ if (MB_CUR_MAX > 1 && rl_byte_oriented == 0 && prompt_multibyte_chars > 0)
+- lpos -= _rl_col_width (local_prompt, n0, num);
++ {
++ if (local_prompt_len > 0)
++ lpos -= _rl_col_width (local_prompt, n0, num);
++ }
+ else
+ #endif
+ lpos -= _rl_screenwidth;