source: npl/overig/readline/readline-6.3-patches/readline63-006 @ 128fde4

gcc484perl-5.22
Last change on this file since 128fde4 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.9 KB
Line 
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
Note: See TracBrowser for help on using the repository browser.