86ab3d507966ae2a09ea27c5204bc5ca1c3a0e62
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / readline / 0004-patchlevel-4.patch
1 From http://ftp.gnu.org/pub/gnu/readline/readline-6.3-patches/readline63-004
2
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
4
5                            READLINE PATCH REPORT
6                            =====================
7
8 Readline-Release: 6.3
9 Patch-ID: readline63-004
10
11 Bug-Reported-by:        Egmont Koblinger <egmont@gmail.com>
12 Bug-Reference-ID:       <CAGWcZk+bU5Jo1M+tutGvL-250UBE9DXjpeJVofYJSFcqFEVfMg@mail.gmail.com>
13 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00153.html
14
15 Bug-Description:
16
17 The signal handling changes to bash and readline (to avoid running any code
18 in a signal handler context) cause the cursor to be placed on the wrong
19 line of a multi-line command after a ^C interrupts editing.
20
21 Patch (apply with `patch -p0'):
22
23 *** a/readline-6.3-patched/display.c    2013-12-27 13:10:56.000000000 -0500
24 --- b/display.c 2014-03-27 11:52:45.000000000 -0400
25 ***************
26 *** 2678,2682 ****
27     if (_rl_echoing_p)
28       {
29 !       _rl_move_vert (_rl_vis_botlin);
30         _rl_vis_botlin = 0;
31         fflush (rl_outstream);
32 --- 2678,2683 ----
33     if (_rl_echoing_p)
34       {
35 !       if (_rl_vis_botlin > 0) /* minor optimization plus bug fix */
36 !       _rl_move_vert (_rl_vis_botlin);
37         _rl_vis_botlin = 0;
38         fflush (rl_outstream);
39 *** a/readline-6.3/patchlevel   2013-11-15 08:11:11.000000000 -0500
40 --- b/patchlevel        2014-03-21 08:28:40.000000000 -0400
41 ***************
42 *** 1,3 ****
43   # Do not edit -- exists only for use by patch
44   
45 ! 3
46 --- 1,3 ----
47   # Do not edit -- exists only for use by patch
48   
49 ! 4