mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 06:39:43 +03:00
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.)
This commit is contained in:
parent
2f53760689
commit
affca9b523
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user