Blame readline-5.2-009.patch
|
|
4f7cee3 |
READLINE PATCH REPORT
|
|
|
4f7cee3 |
=====================
|
|
|
4f7cee3 |
|
|
|
4f7cee3 |
Readline-Release: 5.2
|
|
|
4f7cee3 |
Patch-ID: readline52-009
|
|
|
4f7cee3 |
|
|
|
4f7cee3 |
Bug-Reported-by: dAniel hAhler <ubuntu@thequod.de>
|
|
|
4f7cee3 |
Bug-Reference-ID:
|
|
|
4f7cee3 |
Bug-Reference-URL:
|
|
|
4f7cee3 |
|
|
|
4f7cee3 |
Bug-Description:
|
|
|
4f7cee3 |
|
|
|
4f7cee3 |
Under some circumstances, readline will incorrectly display a prompt string
|
|
|
4f7cee3 |
containing invisible characters after the final newline.
|
|
|
4f7cee3 |
|
|
|
4f7cee3 |
Patch:
|
|
|
4f7cee3 |
|
|
|
4f7cee3 |
*** ../readline-5.2-patched/display.c 2007-08-25 13:47:08.000000000 -0400
|
|
|
4f7cee3 |
--- display.c 2007-11-10 17:51:29.000000000 -0500
|
|
|
4f7cee3 |
***************
|
|
|
4f7cee3 |
*** 392,396 ****
|
|
|
4f7cee3 |
local_prompt = expand_prompt (p, &prompt_visible_length,
|
|
|
4f7cee3 |
&prompt_last_invisible,
|
|
|
4f7cee3 |
! (int *)NULL,
|
|
|
4f7cee3 |
&prompt_physical_chars);
|
|
|
4f7cee3 |
c = *t; *t = '\0';
|
|
|
4f7cee3 |
--- 420,424 ----
|
|
|
4f7cee3 |
local_prompt = expand_prompt (p, &prompt_visible_length,
|
|
|
4f7cee3 |
&prompt_last_invisible,
|
|
|
4f7cee3 |
! &prompt_invis_chars_first_line,
|
|
|
4f7cee3 |
&prompt_physical_chars);
|
|
|
4f7cee3 |
c = *t; *t = '\0';
|
|
|
4f7cee3 |
***************
|
|
|
4f7cee3 |
*** 399,403 ****
|
|
|
4f7cee3 |
local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length,
|
|
|
4f7cee3 |
(int *)NULL,
|
|
|
4f7cee3 |
! &prompt_invis_chars_first_line,
|
|
|
4f7cee3 |
(int *)NULL);
|
|
|
4f7cee3 |
*t = c;
|
|
|
4f7cee3 |
--- 427,431 ----
|
|
|
4f7cee3 |
local_prompt_prefix = expand_prompt (prompt, &prompt_prefix_length,
|
|
|
4f7cee3 |
(int *)NULL,
|
|
|
4f7cee3 |
! (int *)NULL,
|
|
|
4f7cee3 |
(int *)NULL);
|
|
|
4f7cee3 |
*t = c;
|