tweaks: reshuffle a fragment of code to a better place

master
Benno Schulenberg 2021-11-17 10:42:21 +01:00
parent 2b0bcc7cee
commit bd4eed9cb1
1 changed files with 7 additions and 8 deletions

View File

@ -1076,6 +1076,13 @@ void toggle_this(int flag)
window_init();
draw_all_subwindows();
break;
case CONSTANT_SHOW:
if (ISSET(ZERO) || LINES == 1) {
statusline(AHEM, _("Not possible in barless mode"));
TOGGLE(flag);
} else if (!ISSET(MINIBAR))
wipe_statusbar();
return;
#ifdef ENABLE_MOUSE
case USE_MOUSE:
mouse_init();
@ -1119,13 +1126,6 @@ void toggle_this(int flag)
if ((ISSET(MINIBAR) || ISSET(ZERO)) && (flag == NO_HELP || flag == LINE_NUMBERS))
return;
if (flag == CONSTANT_SHOW) {
if (ISSET(ZERO) || LINES == 1) {
statusline(AHEM, _("Not possible in barless mode"));
TOGGLE(flag);
} else if (!ISSET(MINIBAR))
wipe_statusbar();
} else {
bool enabled = ISSET(flag);
if (flag == NO_HELP || flag == NO_SYNTAX)
@ -1133,7 +1133,6 @@ void toggle_this(int flag)
statusline(REMARK, "%s %s", _(flagtostr(flag)),
enabled ? _("enabled") : _("disabled"));
}
}
#endif /* !NANO_TINY */