diff options
author | June McEnroe <june@causal.agency> | 2021-05-28 20:38:43 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-05-28 20:40:25 -0400 |
commit | f559322224cc3bfa6c1d37631fb6dc5fa93449b9 (patch) | |
tree | af54593bc7b2fa0f28df12345b97a523a10eeb56 /command.c | |
parent | Improve missing param behavior for /msg, /whois, /ns, /cs (diff) | |
download | catgirl-f559322224cc3bfa6c1d37631fb6dc5fa93449b9.tar.gz catgirl-f559322224cc3bfa6c1d37631fb6dc5fa93449b9.zip |
List windows with /window 1.8
Reuse the /window command to preserve /wi abbreviation.
Diffstat (limited to '')
-rw-r--r-- | command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/command.c b/command.c index ef82d30..4c290fc 100644 --- a/command.c +++ b/command.c @@ -373,8 +373,9 @@ static void commandQuery(uint id, char *params) { } static void commandWindow(uint id, char *params) { - if (!params) return; - if (isdigit(params[0])) { + if (!params) { + uiWindows(); + } else if (isdigit(params[0])) { uiShowNum(strtoul(params, NULL, 10)); } else { id = idFind(params); |