summaryrefslogtreecommitdiff
path: root/shells/bash/files/patch-lib_readline_display.c
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2025-07-07 20:03:00 +0200
committerEmanuel Haupt <ehaupt@FreeBSD.org>2025-07-07 20:03:17 +0200
commit3508799be924c3e1594e54067b94395db7a68fcf (patch)
tree363ee6b279b65af3f3f6f7b827761acf47aa9843 /shells/bash/files/patch-lib_readline_display.c
parentshells/bash53: Remove extra version of bash (diff)
shells/bash: Update to 5.3
Changes: https://lists.gnu.org/archive/html/bash-announce/2025-07/msg00000.html
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));