A menu must be shown on a client, so always give the client when adding

the items. Also fix mode menus.
This commit is contained in:
nicm
2022-02-01 18:12:20 +00:00
parent 7e34645fcb
commit 97900d0442
3 changed files with 5 additions and 13 deletions

2
menu.c
View File

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