illumos-gcc: remove -j8, so higher-level jobserver gets used
[unleashed-userland.git] / components / library / readline / patches / readline63-004.patch
blob539a398b508586924fe8690b1b123a3e3d6bc039
1 # DP: readline63-004 upstream patch
3 READLINE PATCH REPORT
4 =====================
6 Readline-Release: 6.3
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
13 Bug-Description:
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'):
21 Index: b/display.c
22 ===================================================================
23 --- a/display.c
24 +++ b/display.c
25 @@ -2677,7 +2677,8 @@ _rl_clean_up_for_exit ()
27 if (_rl_echoing_p)
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);
32 _rl_vis_botlin = 0;
33 fflush (rl_outstream);
34 rl_restart_output (1, 0);