]> git.pld-linux.org Git - packages/bash.git/blame - bash32-027
- up to 3.2.39
[packages/bash.git] / bash32-027
CommitLineData
e69a13d6
ER
1 BASH PATCH REPORT
2 =================
3
4Bash-Release: 3.2
5Patch-ID: bash32-027
6
7Bug-Reported-by: dAniel hAhler <ubuntu@thequod.de>
8Bug-Reference-ID: <4702ED8A.5000503@thequod.de>
9Bug-Reference-URL: https://bugs.launchpad.net/ubuntu/+source/bash/+bug/119938
10
11Bug-Description:
12
13When updating the display after displaying, for instance, a list of possible
14completions, readline will place the cursor at the wrong position if the
15prompt contains invisible characters and a newline.
16
17Patch:
18
19*** ../bash-3.2.25/lib/readline/display.c Mon Aug 6 14:26:29 2007
20--- lib/readline/display.c Wed Oct 10 22:43:58 2007
21***************
22*** 1049,1053 ****
23 else
24 tx = nleft;
25! if (_rl_last_c_pos > tx)
26 {
27 _rl_backspace (_rl_last_c_pos - tx); /* XXX */
28--- 1049,1053 ----
29 else
30 tx = nleft;
31! if (tx >= 0 && _rl_last_c_pos > tx)
32 {
33 _rl_backspace (_rl_last_c_pos - tx); /* XXX */
34***************
35*** 1205,1209 ****
36 {
37 register char *ofd, *ols, *oe, *nfd, *nls, *ne;
38! int temp, lendiff, wsatend, od, nd;
39 int current_invis_chars;
40 int col_lendiff, col_temp;
41--- 1205,1209 ----
42 {
43 register char *ofd, *ols, *oe, *nfd, *nls, *ne;
44! int temp, lendiff, wsatend, od, nd, o_cpos;
45 int current_invis_chars;
46 int col_lendiff, col_temp;
47***************
48*** 1466,1469 ****
49--- 1466,1471 ----
50 }
51
52+ o_cpos = _rl_last_c_pos;
53+
54 /* When this function returns, _rl_last_c_pos is correct, and an absolute
55 cursor postion in multibyte mode, but a buffer index when not in a
56***************
57*** 1475,1479 ****
58 invisible characters in the prompt string. Let's see if setting this when
59 we make sure we're at the end of the drawn prompt string works. */
60! if (current_line == 0 && MB_CUR_MAX > 1 && rl_byte_oriented == 0 && _rl_last_c_pos == prompt_physical_chars)
61 cpos_adjusted = 1;
62 #endif
63--- 1477,1483 ----
64 invisible characters in the prompt string. Let's see if setting this when
65 we make sure we're at the end of the drawn prompt string works. */
66! if (current_line == 0 && MB_CUR_MAX > 1 && rl_byte_oriented == 0 &&
67! (_rl_last_c_pos > 0 || o_cpos > 0) &&
68! _rl_last_c_pos == prompt_physical_chars)
69 cpos_adjusted = 1;
70 #endif
71*** ../bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
72--- patchlevel.h Mon Oct 16 14:22:54 2006
73***************
74*** 26,30 ****
75 looks for to find the patch level (for the sccs version string). */
76
77! #define PATCHLEVEL 26
78
79 #endif /* _PATCHLEVEL_H_ */
80--- 26,30 ----
81 looks for to find the patch level (for the sccs version string). */
82
83! #define PATCHLEVEL 27
84
85 #endif /* _PATCHLEVEL_H_ */
This page took 0.038487 seconds and 4 git commands to generate.