aboutsummaryrefslogtreecommitdiff
path: root/shells/bash/files/patch-lib::readline::display.c
diff options
context:
space:
mode:
Diffstat (limited to 'shells/bash/files/patch-lib::readline::display.c')
-rw-r--r--shells/bash/files/patch-lib::readline::display.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/shells/bash/files/patch-lib::readline::display.c b/shells/bash/files/patch-lib::readline::display.c
new file mode 100644
index 000000000000..578c5c166fd8
--- /dev/null
+++ b/shells/bash/files/patch-lib::readline::display.c
@@ -0,0 +1,23 @@
+#
+# Fix line wraps
+# http://lists.gnu.org/archive/html/bug-bash/2004-08/msg00325.html
+#
+--- lib/readline/display.c.orig Wed Sep 1 18:28:21 2004
++++ lib/readline/display.c Wed Sep 1 18:29:18 2004
+@@ -351,14 +351,14 @@
+ local_prompt = expand_prompt (p, &prompt_visible_length,
+ &prompt_last_invisible,
+ (int *)NULL,
+- (int *)NULL);
++ &prompt_physical_chars);
+ c = *t; *t = '\0';
+ /* The portion of the prompt string up to and including the
+ final newline is now null-terminated. */
+ local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length,
+ (int *)NULL,
+ &prompt_invis_chars_first_line,
+- &prompt_physical_chars);
++ (int *)NULL);
+ *t = c;
+ return (prompt_prefix_length);
+ }