we don't need that last if anymore, and we can reduce the first if to a

single line
This commit is contained in:
speedie 2023-03-31 16:05:24 +02:00
parent d4143fc077
commit 90875c2dec

View file

@ -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();
} }