Upload cas/54/5481adbe161c9f6ba972c74db9e18c7aa351d3df3035cc4a673a1aa06247d1c6 with huggingface_hub
Browse files
cas/54/5481adbe161c9f6ba972c74db9e18c7aa351d3df3035cc4a673a1aa06247d1c6
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
READLINE PATCH REPORT
|
| 2 |
+
=====================
|
| 3 |
+
|
| 4 |
+
Readline-Release: 8.3
|
| 5 |
+
Patch-ID: readline83-005
|
| 6 |
+
|
| 7 |
+
Bug-Reported-by: Ben Kallus <benjamin.p.kallus.gr@dartmouth.edu>
|
| 8 |
+
Derek Schrock <dereks@lifeofadishwasher.com>
|
| 9 |
+
Bug-Reference-ID: <CAB6pCSaUPimkEbQwTTkxD5vV14ZJRGCeK2W1ur8RqT1rPrd+Gw@mail.gmail.com>
|
| 10 |
+
<ajC1pZAV_95J3vsJ@ircbsd.lifeofadishwasher.com>
|
| 11 |
+
Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2026-06/msg00005.html
|
| 12 |
+
https://lists.gnu.org/archive/html/bug-readline/2026-06/msg00002.html
|
| 13 |
+
|
| 14 |
+
Bug-Description:
|
| 15 |
+
|
| 16 |
+
This patch fixes two problems with the redisplay code. The first is a
|
| 17 |
+
crash that results if the initial prompt contains more than 256 wrapped
|
| 18 |
+
lines. The second is a fix to the redisplay code when the first several
|
| 19 |
+
characters of the prompt string are identical, but the prompt has changed
|
| 20 |
+
and needs to be redrawn. If these first few characters are part of an escape
|
| 21 |
+
sequence, the entire sequence needs to be redrawn.
|
| 22 |
+
|
| 23 |
+
Patch (apply with `patch -p0'):
|
| 24 |
+
|
| 25 |
+
*** ../readline-8.3-patched/display.c Fri May 22 14:55:01 2026
|
| 26 |
+
--- display.c Fri Jun 26 11:08:53 2026
|
| 27 |
+
***************
|
| 28 |
+
*** 1025,1028 ****
|
| 29 |
+
--- 1025,1029 ----
|
| 30 |
+
{
|
| 31 |
+
temp = local_prompt_newlines[newlines+1];
|
| 32 |
+
+ CHECK_INV_LBREAKS ();
|
| 33 |
+
inv_lbreaks[++newlines] = temp;
|
| 34 |
+
}
|
| 35 |
+
***************
|
| 36 |
+
*** 2262,2270 ****
|
| 37 |
+
nd = nfd - new; /* nd, od are buffer indexes */
|
| 38 |
+
if (current_line == 0 && !_rl_horizontal_scroll_mode &&
|
| 39 |
+
! _rl_term_cr && lendiff > prompt_visible_length && _rl_last_c_pos > 0 &&
|
| 40 |
+
(((od > 0 || nd > 0) && (od <= prompt_last_invisible || nd <= prompt_last_invisible)) ||
|
| 41 |
+
((od >= lendiff) && _rl_last_c_pos < PROMPT_ENDING_INDEX)))
|
| 42 |
+
{
|
| 43 |
+
! _rl_cr ();
|
| 44 |
+
if (modmark)
|
| 45 |
+
_rl_output_some_chars ("*", 1);
|
| 46 |
+
--- 2266,2275 ----
|
| 47 |
+
nd = nfd - new; /* nd, od are buffer indexes */
|
| 48 |
+
if (current_line == 0 && !_rl_horizontal_scroll_mode &&
|
| 49 |
+
! _rl_term_cr && lendiff > prompt_visible_length && _rl_last_c_pos >= 0 &&
|
| 50 |
+
(((od > 0 || nd > 0) && (od <= prompt_last_invisible || nd <= prompt_last_invisible)) ||
|
| 51 |
+
((od >= lendiff) && _rl_last_c_pos < PROMPT_ENDING_INDEX)))
|
| 52 |
+
{
|
| 53 |
+
! if (_rl_last_c_pos > 0)
|
| 54 |
+
! _rl_cr ();
|
| 55 |
+
if (modmark)
|
| 56 |
+
_rl_output_some_chars ("*", 1);
|
| 57 |
+
*** ../readline-8.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
|
| 58 |
+
--- patchlevel 2024-03-21 08:28:40.000000000 -0400
|
| 59 |
+
***************
|
| 60 |
+
*** 1,3 ****
|
| 61 |
+
# Do not edit -- exists only for use by patch
|
| 62 |
+
|
| 63 |
+
! 4
|
| 64 |
+
--- 1,3 ----
|
| 65 |
+
# Do not edit -- exists only for use by patch
|
| 66 |
+
|
| 67 |
+
! 5
|