we don't need that last if anymore, and we can reduce the first if to a
single line
This commit is contained in:
parent
d4143fc077
commit
90875c2dec
|
@ -4,13 +4,7 @@ switchmode(const Arg *arg)
|
||||||
curMode = !curMode;
|
curMode = !curMode;
|
||||||
allowkeys = !curMode;
|
allowkeys = !curMode;
|
||||||
|
|
||||||
if (!curMode) {
|
strcpy(modetext, curMode ? instext : normtext);
|
||||||
strcpy(modetext, normtext);
|
|
||||||
} else {
|
|
||||||
strcpy(modetext, instext);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hidemode) strcpy(modetext, "");
|
|
||||||
|
|
||||||
drawmenu();
|
drawmenu();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue