]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/readline/readline63-006
readline: add patch 001 for version 8.0
[people/pmueller/ipfire-2.x.git] / src / patches / readline / readline63-006
1 READLINE PATCH REPORT
2 =====================
3
4 Readline-Release: 6.3
5 Patch-ID: readline63-006
6
7 Bug-Reported-by: <Trond.Endrestol@ximalas.info>
8 Bug-Reference-ID: <alpine.BSF.2.03.1404192114310.1973@enterprise.ximalas.info>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-04/msg00069.html
10
11 Bug-Description:
12
13 Using reverse-i-search when horizontal scrolling is enabled does not redisplay
14 the entire line containing the successful search results.
15
16 Patch (apply with `patch -p0'):
17
18 *** ../readline-6.3-patched/display.c 2014-04-08 18:19:36.000000000 -0400
19 --- display.c 2014-04-20 18:32:52.000000000 -0400
20 ***************
21 *** 1638,1642 ****
22 the spot of first difference is before the end of the invisible chars,
23 lendiff needs to be adjusted. */
24 ! if (current_line == 0 && !_rl_horizontal_scroll_mode &&
25 current_invis_chars != visible_wrap_offset)
26 {
27 --- 1638,1642 ----
28 the spot of first difference is before the end of the invisible chars,
29 lendiff needs to be adjusted. */
30 ! if (current_line == 0 && /* !_rl_horizontal_scroll_mode && */
31 current_invis_chars != visible_wrap_offset)
32 {
33 ***************
34 *** 1826,1831 ****
35 _rl_last_c_pos += bytes_to_insert;
36
37 if (_rl_horizontal_scroll_mode && ((oe-old) > (ne-new)))
38 ! goto clear_rest_of_line;
39 }
40 }
41 --- 1826,1836 ----
42 _rl_last_c_pos += bytes_to_insert;
43
44 + /* XXX - we only want to do this if we are at the end of the line
45 + so we move there with _rl_move_cursor_relative */
46 if (_rl_horizontal_scroll_mode && ((oe-old) > (ne-new)))
47 ! {
48 ! _rl_move_cursor_relative (ne-new, new);
49 ! goto clear_rest_of_line;
50 ! }
51 }
52 }
53 *** ../readline-6.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
54 --- patchlevel 2014-03-21 08:28:40.000000000 -0400
55 ***************
56 *** 1,3 ****
57 # Do not edit -- exists only for use by patch
58
59 ! 5
60 --- 1,3 ----
61 # Do not edit -- exists only for use by patch
62
63 ! 6