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;
|
||||
allowkeys = !curMode;
|
||||
|
||||
if (!curMode) {
|
||||
strcpy(modetext, normtext);
|
||||
} else {
|
||||
strcpy(modetext, instext);
|
||||
}
|
||||
|
||||
if (hidemode) strcpy(modetext, "");
|
||||
strcpy(modetext, curMode ? instext : normtext);
|
||||
|
||||
drawmenu();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue