]> git.pld-linux.org Git - packages/bash.git/blame - bash32-031
- up to 3.2.39
[packages/bash.git] / bash32-031
CommitLineData
e69a13d6
ER
1 BASH PATCH REPORT
2 =================
3
4Bash-Release: 3.2
5Patch-ID: bash32-031
6
7Bug-Reported-by: Miroslav Lichvar <mlichvar@redhat.com>
8Bug-Reference-ID: Fri, 02 Nov 2007 14:07:45 +0100
9Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2007-11/msg00000.html
10
11Bug-Description:
12
13In certain cases when outputting characters at the end of the line,
14e.g., when displaying the prompt string, readline positions the cursor
15incorrectly if the prompt string contains invisible characters and the
16text being drawn begins before the last invisible character in the line.
17
18Patch:
19
20*** ../bash-3.2-patched/lib/readline/display.c 2007-08-25 13:47:08.000000000 -0400
21--- lib/readline/display.c 2007-11-10 17:51:29.000000000 -0500
22***************
23*** 1566,1574 ****
24 else
25 {
26- /* We have horizontal scrolling and we are not inserting at
27- the end. We have invisible characters in this line. This
28- is a dumb update. */
29 _rl_output_some_chars (nfd, temp);
30 _rl_last_c_pos += col_temp;
31 return;
32 }
33--- 1619,1632 ----
34 else
35 {
36 _rl_output_some_chars (nfd, temp);
37 _rl_last_c_pos += col_temp;
38+ /* If nfd begins before any invisible characters in the prompt,
39+ adjust _rl_last_c_pos to account for wrap_offset and set
40+ cpos_adjusted to let the caller know. */
41+ if (current_line == 0 && wrap_offset && ((nfd - new) <= prompt_last_invisible))
42+ {
43+ _rl_last_c_pos -= wrap_offset;
44+ cpos_adjusted = 1;
45+ }
46 return;
47 }
48*** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
49--- patchlevel.h Mon Oct 16 14:22:54 2006
50***************
51*** 26,30 ****
52 looks for to find the patch level (for the sccs version string). */
53
54! #define PATCHLEVEL 30
55
56 #endif /* _PATCHLEVEL_H_ */
57--- 26,30 ----
58 looks for to find the patch level (for the sccs version string). */
59
60! #define PATCHLEVEL 31
61
62 #endif /* _PATCHLEVEL_H_ */
This page took 0.071262 seconds and 4 git commands to generate.