summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authornicm <nicm>2022-02-01 18:12:20 +0000
committernicm <nicm>2022-02-01 18:12:20 +0000
commit97900d0442252aa4b76f89745718038f39717ecd (patch)
tree1dd2fc5e672174f3a737255f446b48518bcc2316 /menu.c
parent7e34645fcbe93984461343d67373a29e552fec20 (diff)
A menu must be shown on a client, so always give the client when adding
the items. Also fix mode menus.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index c770cd7d..aaa1287e 100644
--- a/menu.c
+++ b/menu.c
@@ -81,8 +81,6 @@ menu_add_item(struct menu *menu, const struct menu_item *item,
menu->count--;
return;
}
- if (c->tty.sx <= 4)
- return;
max_width = c->tty.sx - 4;
slen = strlen(s);