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'):
17 *** ../bash-4.3-patched/lib/readline/display.c 2014-04-08 18:19:36.000000000 -0400
18 --- lib/readline/display.c 2014-04-20 18:32:52.000000000 -0400
21 the spot of first difference is before the end of the invisible chars,
22 lendiff needs to be adjusted. */
23 ! if (current_line == 0 && !_rl_horizontal_scroll_mode &&
24 current_invis_chars != visible_wrap_offset)
27 the spot of first difference is before the end of the invisible chars,
28 lendiff needs to be adjusted. */
29 ! if (current_line == 0 && /* !_rl_horizontal_scroll_mode && */
30 current_invis_chars != visible_wrap_offset)
34 _rl_last_c_pos += bytes_to_insert;
36 if (_rl_horizontal_scroll_mode && ((oe-old) > (ne-new)))
37 ! goto clear_rest_of_line;
41 _rl_last_c_pos += bytes_to_insert;
43 + /* XXX - we only want to do this if we are at the end of the line
44 + so we move there with _rl_move_cursor_relative */
45 if (_rl_horizontal_scroll_mode && ((oe-old) > (ne-new)))
47 ! _rl_move_cursor_relative (ne-new, new);
48 ! goto clear_rest_of_line;
52 *** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.000000000 -0500
53 --- patchlevel.h 2014-03-20 20:01:28.000000000 -0400
56 looks for to find the patch level (for the sccs version string). */
58 ! #define PATCHLEVEL 12
60 #endif /* _PATCHLEVEL_H_ */
62 looks for to find the patch level (for the sccs version string). */
64 ! #define PATCHLEVEL 13
66 #endif /* _PATCHLEVEL_H_ */