summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/bash/files/bash-3.0-prompt.patch')
-rw-r--r--app-shells/bash/files/bash-3.0-prompt.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-3.0-prompt.patch b/app-shells/bash/files/bash-3.0-prompt.patch
new file mode 100644
index 0000000..11ec1c0
--- /dev/null
+++ b/app-shells/bash/files/bash-3.0-prompt.patch
@@ -0,0 +1,28 @@
+Hack around this bug:
+
+http://lists.gnu.org/archive/html/bug-bash/2004-10/msg00419.html
+
+not suitable for upstream; need a proper fix
+
+http://bugs.gentoo.org/108936
+http://bugs.gentoo.org/69407
+
+--- lib/readline/display.c
++++ lib/readline/display.c
+@@ -941,6 +941,7 @@
+ /* nleft == number of characters in the line buffer between the
+ start of the line and the cursor position. */
+ nleft = c_pos - pos;
++#if 0
+
+ /* Since _rl_backspace() doesn't know about invisible characters in the
+ prompt, and there's no good way to tell it, we compensate for
+@@ -954,6 +955,8 @@
+ _rl_last_c_pos = nleft;
+ }
+
++#endif
++
+ if (MB_CUR_MAX > 1 && rl_byte_oriented == 0)
+ _rl_move_cursor_relative (nleft, &invisible_line[pos]);
+ else if (nleft != _rl_last_c_pos)