From 3508799be924c3e1594e54067b94395db7a68fcf Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Mon, 7 Jul 2025 20:03:00 +0200 Subject: shells/bash: Update to 5.3 Changes: https://lists.gnu.org/archive/html/bash-announce/2025-07/msg00000.html --- shells/bash/files/patch-lib_readline_display.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'shells/bash/files/patch-lib_readline_display.c') 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)); -- cgit v1.2.3