minibar: show the state flags only when --stateflags is used
For users who always have auto-indent or hardwrap or softwrap on and do not need to see this continuously advertised at the bottom.master
parent
878bd53d11
commit
7545eb5bbf
|
@ -1112,7 +1112,7 @@ void do_toggle(int flag)
|
||||||
if (flag == NO_HELP || flag == NO_SYNTAX)
|
if (flag == NO_HELP || flag == NO_SYNTAX)
|
||||||
enabled = !enabled;
|
enabled = !enabled;
|
||||||
|
|
||||||
if (!ISSET(MINIBAR) || flag == SMART_HOME || flag == CUT_FROM_CURSOR ||
|
if (!ISSET(MINIBAR) || !ISSET(STATEFLAGS) || flag == SMART_HOME || flag == CUT_FROM_CURSOR ||
|
||||||
flag == TABS_TO_SPACES || flag == USE_MOUSE || flag == SUSPENDABLE)
|
flag == TABS_TO_SPACES || flag == USE_MOUSE || flag == SUSPENDABLE)
|
||||||
statusline(REMARK, "%s %s", _(flagtostr(flag)),
|
statusline(REMARK, "%s %s", _(flagtostr(flag)),
|
||||||
enabled ? _("enabled") : _("disabled"));
|
enabled ? _("enabled") : _("disabled"));
|
||||||
|
|
|
@ -2179,7 +2179,7 @@ void minibar(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display the state of three flags, and the state of macro and mark. */
|
/* Display the state of three flags, and the state of macro and mark. */
|
||||||
if (!successor && namewidth + tallywidth + 14 + 2 * padding < COLS) {
|
if (ISSET(STATEFLAGS) && !successor && namewidth + tallywidth + 14 + 2 * padding < COLS) {
|
||||||
wmove(bottomwin, 0, COLS - 11 - padding);
|
wmove(bottomwin, 0, COLS - 11 - padding);
|
||||||
show_states_at(bottomwin);
|
show_states_at(bottomwin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue