summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/bash/files/bash-3.2_p10-redisplay-cursor.patch')
-rw-r--r--app-shells/bash/files/bash-3.2_p10-redisplay-cursor.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-shells/bash/files/bash-3.2_p10-redisplay-cursor.patch b/app-shells/bash/files/bash-3.2_p10-redisplay-cursor.patch
new file mode 100644
index 000000000000..cd8c71c738c7
--- /dev/null
+++ b/app-shells/bash/files/bash-3.2_p10-redisplay-cursor.patch
@@ -0,0 +1,18 @@
+*** ../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;