tweaks: reshuffle some conditions, so that the ifs have similar formats
parent
5cf412320d
commit
84f8445b7b
13
src/nano.c
13
src/nano.c
|
@ -1116,17 +1116,16 @@ void toggle_this(int flag)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ISSET(STATEFLAGS) && !ISSET(ZERO) && (flag == AUTOINDENT ||
|
if (flag == AUTOINDENT || flag == BREAK_LONG_LINES || flag == SOFTWRAP) {
|
||||||
flag == BREAK_LONG_LINES || flag == SOFTWRAP)) {
|
if (ISSET(MINIBAR) && !ISSET(ZERO) && ISSET(STATEFLAGS))
|
||||||
if (ISSET(MINIBAR))
|
|
||||||
return;
|
return;
|
||||||
else
|
if (ISSET(STATEFLAGS))
|
||||||
titlebar(NULL);
|
titlebar(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ISSET(MINIBAR) || ISSET(ZERO)) && (flag == NO_HELP || flag == LINE_NUMBERS ||
|
if (flag == NO_HELP || flag == LINE_NUMBERS || flag == WHITESPACE_DISPLAY)
|
||||||
flag == WHITESPACE_DISPLAY))
|
if (ISSET(MINIBAR) || ISSET(ZERO))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (flag == NO_HELP || flag == NO_SYNTAX)
|
if (flag == NO_HELP || flag == NO_SYNTAX)
|
||||||
enabled = !enabled;
|
enabled = !enabled;
|
||||||
|
|
Loading…
Reference in New Issue