summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/bash/files/bash-3.2-redisplay-cursor.patch')
-rw-r--r--app-shells/bash/files/bash-3.2-redisplay-cursor.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-3.2-redisplay-cursor.patch b/app-shells/bash/files/bash-3.2-redisplay-cursor.patch
new file mode 100644
index 0000000..b9713bc
--- /dev/null
+++ b/app-shells/bash/files/bash-3.2-redisplay-cursor.patch
@@ -0,0 +1,20 @@
+http://bugs.gentoo.org/155369
+
+*** ../bash-3.2.10/lib/readline/display.c Fri Jan 19 13:34:50 2007
+--- lib/readline/display.c Sat Mar 10 17:25:44 2007
+***************
+*** 1733,1737 ****
+ {
+ dpos = _rl_col_width (data, 0, new);
+! if (dpos > prompt_last_invisible) /* XXX - don't use woff here */
+ {
+ dpos -= woff;
+--- 1765,1772 ----
+ {
+ dpos = _rl_col_width (data, 0, new);
+! /* Use NEW when comparing against the last invisible character in the
+! prompt string, since they're both buffer indices and DPOS is a
+! desired display position. */
+! if (new > prompt_last_invisible) /* XXX - don't use woff here */
+ {
+ dpos -= woff;