blob: edd10f33e514b1239c4e61b2db6523a23c5ba4ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 9c465866b7d849378369ef700cbe2965aa9691e3 Mon Sep 17 00:00:00 2001
From: Chet Ramey <chet.ramey@case.edu>
Date: Tue, 15 Sep 2026 11:19:22 -0400
Subject: Bash-5.3 patch 20: If readline handles a SIGWINCH and updates its
idea of the screen dimensions, it needs to recompute the columns where the
prompt wraps lines every time, not just when the screen width decreases.
--- a/lib/readline/display.c
+++ b/lib/readline/display.c
@@ -3522,8 +3522,9 @@ _rl_redisplay_after_sigwinch (void)
else
rl_crlf ();
- if (_rl_screenwidth < prompt_visible_length)
- _rl_reset_prompt (); /* update local_prompt_newlines array */
+ /* Let expand_prompt() update local_prompt_newlines and local_prompt_invis_chars
+ arrays */
+ _rl_reset_prompt ();
/* Redraw only the last line of a multi-line prompt. */
t = strrchr (rl_display_prompt, '\n');
--- a/patchlevel.h
+++ b/patchlevel.h
@@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */
-#define PATCHLEVEL 19
+#define PATCHLEVEL 20
#endif /* _PATCHLEVEL_H_ */
|