diff options
author | Chet Ramey <chet.ramey@case.edu> | 2023-11-17 16:06:49 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2023-11-17 16:06:49 -0500 |
commit | bfe9c573a9e376323929c80b2b71c59727fab0cc (patch) | |
tree | 3262d2fa62d29750038fa30d10049f36aec95638 | |
parent | 93a6afa50f953246f7c0f93b219a1e4010ba704b (diff) |
Readline-8.2 patch 7: display newline if readline is called without a prompt string and return is typed on a single empty line
-rw-r--r-- | display.c | 4 | ||||
-rw-r--r-- | patchlevel | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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++; } @@ -1,3 +1,3 @@ # Do not edit -- exists only for use by patch -6 +7 |