ports/shells/bash/files/patch-lib::readline::display.c
Oliver Eikemeier a55fe984d5 - add FAQ
- experimental shopt `implicitcd'
- fix `Tags out of Date' in texinfo pages
- fix line wrap bug in libreadline
- set LATEST_LINK to `bash', so that `pkg_add -r bash' works
2004-09-03 09:21:31 +00:00

23 lines
803 B
C

#
# 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);
}