5 Patch-ID: readline63-006
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
13 Using reverse-i-search when horizontal scrolling is enabled does not redisplay
14 the entire line containing the successful search results.
16 Patch (apply with `patch -p0'):
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
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)
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)
35 _rl_last_c_pos += bytes_to_insert;
37 if (_rl_horizontal_scroll_mode && ((oe-old) > (ne-new)))
38 ! goto clear_rest_of_line;
42 _rl_last_c_pos += bytes_to_insert;
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)))
48 ! _rl_move_cursor_relative (ne-new, new);
49 ! goto clear_rest_of_line;
53 *** ../readline-6.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
54 --- patchlevel 2014-03-21 08:28:40.000000000 -0400
57 # Do not edit -- exists only for use by patch
61 # Do not edit -- exists only for use by patch