5 Patch-ID: readline82-007
7 Bug-Reported-by: Kevin Pulo <kev@pulo.com.au>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2022-11/msg00002.html
13 If readline is called with no prompt, it should display a newline if return
14 is typed on an empty line. It should still suppress the final newline if
15 return is typed on the last (empty) line of a multi-line command.
17 Patch (apply with `patch -p0'):
19 *** ../readline-8.2-patched/display.c 2022-04-05 10:47:31.000000000 -0400
20 --- display.c 2022-12-13 13:11:22.000000000 -0500
23 &last_face[_rl_screenwidth - 1 + woff], 1);
26 ! if (botline_length > 0 || _rl_last_c_pos > 0)
28 fflush (rl_outstream);
31 &last_face[_rl_screenwidth - 1 + woff], 1);
33 ! if ((_rl_vis_botlin == 0 && botline_length == 0) || botline_length > 0 || _rl_last_c_pos > 0)
36 fflush (rl_outstream);
38 *** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
39 --- patchlevel 2014-03-21 08:28:40.000000000 -0400
42 # Do not edit -- exists only for use by patch
46 # Do not edit -- exists only for use by patch