summaryrefslogtreecommitdiff
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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/shells/bash/files/patch-lib_readline_display.c b/shells/bash/files/patch-lib_readline_display.c
index f81aba551533..4d8141cb7441 100644
--- a/shells/bash/files/patch-lib_readline_display.c
+++ b/shells/bash/files/patch-lib_readline_display.c
@@ -1,13 +1,14 @@
---- lib/readline/display.c.orig 2022-04-05 14:47:31 UTC
+--- lib/readline/display.c.orig 2025-05-02 13:20:32 UTC
+++ lib/readline/display.c
-@@ -953,7 +953,10 @@ rl_redisplay (void)
+@@ -999,7 +999,10 @@ rl_redisplay (void)
the line breaks in the prompt string in expand_prompt, taking invisible
characters into account, and if lpos exceeds the screen width, we copy
the data in the loop below. */
+- lpos = local_prompt ? prompt_physical_chars + modmark : 0;
+ if (local_prompt)
- lpos = prompt_physical_chars + modmark;
++ lpos = local_prompt ? prompt_physical_chars + modmark : 0;
+ else
-+ lpos = 0;
++ lpos = 0;
#if defined (HANDLE_MULTIBYTE)
memset (line_state_invisible->wrapped_line, 0, line_state_invisible->wbsize * sizeof (int));