]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/readline/readline63-006
Revert "bash/readline: drop orphaned patches"
[ipfire-2.x.git] / src / patches / readline / readline63-006
CommitLineData
d19c8267
AF
1 READLINE PATCH REPORT
2 =====================
3
4Readline-Release: 6.3
5Patch-ID: readline63-006
6
7Bug-Reported-by: <Trond.Endrestol@ximalas.info>
8Bug-Reference-ID: <alpine.BSF.2.03.1404192114310.1973@enterprise.ximalas.info>
9Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-04/msg00069.html
10
11Bug-Description:
12
13Using reverse-i-search when horizontal scrolling is enabled does not redisplay
14the entire line containing the successful search results.
15
16Patch (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