7 Bug-Reported-by: Egmont Koblinger <egmont@gmail.com>
8 Bug-Reference-ID: <CAGWcZk+bU5Jo1M+tutGvL-250UBE9DXjpeJVofYJSFcqFEVfMg@mail.gmail.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00153.html
13 The signal handling changes to bash and readline (to avoid running any code
14 in a signal handler context) cause the cursor to be placed on the wrong
15 line of a multi-line command after a ^C interrupts editing.
17 Patch (apply with `patch -p0'):
19 --- a/lib/readline/display.c
20 +++ b/lib/readline/display.c
21 @@ -2677,7 +2677,8 @@ _rl_clean_up_for_exit ()
25 - _rl_move_vert (_rl_vis_botlin);
26 + if (_rl_vis_botlin > 0) /* minor optimization plus bug fix */
27 + _rl_move_vert (_rl_vis_botlin);
29 fflush (rl_outstream);
30 rl_restart_output (1, 0);
34 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
35 looks for to find the patch level (for the sccs version string). */
37 -#define PATCHLEVEL 10
38 +#define PATCHLEVEL 11
40 #endif /* _PATCHLEVEL_H_ */