1 # DP: readline63-004 upstream patch
7 Patch-ID: readline63-004
9 Bug-Reported-by: Egmont Koblinger <egmont@gmail.com>
10 Bug-Reference-ID: <CAGWcZk+bU5Jo1M+tutGvL-250UBE9DXjpeJVofYJSFcqFEVfMg@mail.gmail.com>
11 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00153.html
15 The signal handling changes to bash and readline (to avoid running any code
16 in a signal handler context) cause the cursor to be placed on the wrong
17 line of a multi-line command after a ^C interrupts editing.
19 Patch (apply with `patch -p0'):
22 ===================================================================
25 @@ -2677,7 +2677,8 @@ _rl_clean_up_for_exit ()
29 - _rl_move_vert (_rl_vis_botlin);
30 + if (_rl_vis_botlin > 0) /* minor optimization plus bug fix */
31 + _rl_move_vert (_rl_vis_botlin);
33 fflush (rl_outstream);
34 rl_restart_output (1, 0);