diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-02-01 18:12:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2022-02-01 18:12:21 +0000 |
commit | b1b748cecde4d85fed803e26c3fb543cf53adffa (patch) | |
tree | 2ed7106e80488590441ced5f850f6a549a0c7fdc /usr.bin/tmux/menu.c | |
parent | 37b6e53e336e1319bbeca5a85564a574d4f9192a (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 'usr.bin/tmux/menu.c')
-rw-r--r-- | usr.bin/tmux/menu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/tmux/menu.c b/usr.bin/tmux/menu.c index d5fc75c15a2..f9bcbafce73 100644 --- a/usr.bin/tmux/menu.c +++ b/usr.bin/tmux/menu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: menu.c,v 1.42 2022/02/01 11:52:08 nicm Exp $ */ +/* $OpenBSD: menu.c,v 1.43 2022/02/01 18:12:20 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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); |