commit affca9b523a8ca40fcd39243d0f6c4a32935e20a
parent 2f537606896581b8b233a7a7b7d4c99bb4a197bc
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Thu, 11 Nov 2021 12:15:06 +0100
statusbar: overwrite a message also when using --constant with --zero
This needlessly wipes the status bar when --constantshow is active,
but it already needlessly wiped it when --minibar is active, so...
It is not a performance issue. It was just a small optimization.
(Plus, with --zero, nano does a full edit_refresh() when in fact
only the bottom row needs to be redrawn, but there is no easy way
to do that when --softwrap is active, so...)
(Using --constantshow with --zero doesn't make sense, but the user
might want to have the --constantshow when they toggle --zero off.)
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -1701,10 +1701,6 @@ void check_statusblank(void)
statusblank--;
- /* When editing and 'constantshow' is active, skip the blanking. */
- if (currmenu == MMAIN && ISSET(CONSTANT_SHOW) && LINES > 1)
- return;
-
if (statusblank == 0)
wipe_statusbar();