]> git.ipfire.org Git - thirdparty/readline.git/commitdiff
Readline-8.2 patch 7: display newline if readline is called without a prompt string...
authorChet Ramey <chet.ramey@case.edu>
Fri, 17 Nov 2023 21:06:49 +0000 (16:06 -0500)
committerChet Ramey <chet.ramey@case.edu>
Fri, 17 Nov 2023 21:06:49 +0000 (16:06 -0500)
display.c
patchlevel

index ad573f9a42652b35b3514231fbd890e37b8d4bf8..803d4cebadba81cf1c792da1bf6a6c726497c83f 100644 (file)
--- a/display.c
+++ b/display.c
@@ -3338,9 +3338,9 @@ _rl_update_final (void)
       puts_face (&last_line[_rl_screenwidth - 1 + woff],
                 &last_face[_rl_screenwidth - 1 + woff], 1);
     }
-  _rl_vis_botlin = 0;
-  if (botline_length > 0 || _rl_last_c_pos > 0)
+  if ((_rl_vis_botlin == 0 && botline_length == 0) || botline_length > 0 || _rl_last_c_pos > 0)
     rl_crlf ();
+  _rl_vis_botlin = 0;
   fflush (rl_outstream);
   rl_display_fixed++;
 }
index 6ebd6a5c63717a6420e9e760cdc078d5f74dcc57..e340b58ab3b39942e48d927f82ea240ff68027b7 100644 (file)
@@ -1,3 +1,3 @@
 # Do not edit -- exists only for use by patch
 
-6
+7