diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-05-25 11:59:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-05-25 11:59:51 +0000 |
commit | 12a902d9075e697e6d9a47faa51eee52df5c273b (patch) | |
tree | 0fee297a73f304de415207917e2869e5fb02a615 /usr.bin/tmux/menu.c | |
parent | b4bc9be4d901badb6b32a15fedaf8a5d15dc5f31 (diff) |
Include title for the width of the menu.
Diffstat (limited to 'usr.bin/tmux/menu.c')
-rw-r--r-- | usr.bin/tmux/menu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/menu.c b/usr.bin/tmux/menu.c index 09a2d6b71d6..f2ec947d0c0 100644 --- a/usr.bin/tmux/menu.c +++ b/usr.bin/tmux/menu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: menu.c,v 1.29 2020/05/16 16:35:13 nicm Exp $ */ +/* $OpenBSD: menu.c,v 1.30 2020/05/25 11:59:50 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -111,6 +111,7 @@ menu_create(const char *title) menu = xcalloc(1, sizeof *menu); menu->title = xstrdup(title); + menu->width = format_width(title); return (menu); } |