tweaks: reshuffle a line and adjust indentation after previous change

master
Benno Schulenberg 2021-11-17 10:49:27 +01:00
parent bd4eed9cb1
commit e35b6636ab
1 changed files with 5 additions and 5 deletions

View File

@ -1067,6 +1067,8 @@ void regenerate_screen(void)
/* Invert the given global flag and adjust things for its new value. */
void toggle_this(int flag)
{
bool enabled = !ISSET(flag);
TOGGLE(flag);
focusing = FALSE;
@ -1126,12 +1128,10 @@ void toggle_this(int flag)
if ((ISSET(MINIBAR) || ISSET(ZERO)) && (flag == NO_HELP || flag == LINE_NUMBERS))
return;
bool enabled = ISSET(flag);
if (flag == NO_HELP || flag == NO_SYNTAX)
enabled = !enabled;
if (flag == NO_HELP || flag == NO_SYNTAX)
enabled = !enabled;
statusline(REMARK, "%s %s", _(flagtostr(flag)),
statusline(REMARK, "%s %s", _(flagtostr(flag)),
enabled ? _("enabled") : _("disabled"));
}
#endif /* !NANO_TINY */