summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/menu.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-05-16 14:53:23 +0000
committernicm <nicm@openbsd.org>2020-05-16 14:53:23 +0000
commitbf46d0ce190fe6df7f1df69233f5f243cc29b70c (patch)
treeb5827891926a6ed22da8dab194565c3e2011db8c /usr.bin/tmux/menu.c
parentInstead of forbidding invalid session names, sanitize them like window (diff)
downloadwireguard-openbsd-bf46d0ce190fe6df7f1df69233f5f243cc29b70c.tar.xz
wireguard-openbsd-bf46d0ce190fe6df7f1df69233f5f243cc29b70c.zip
Use a grid cell not a style for the pane style.
Diffstat (limited to 'usr.bin/tmux/menu.c')
-rw-r--r--usr.bin/tmux/menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/menu.c b/usr.bin/tmux/menu.c
index 1242550cd36..3922261b8d4 100644
--- a/usr.bin/tmux/menu.c
+++ b/usr.bin/tmux/menu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: menu.c,v 1.23 2020/04/16 17:20:23 nicm Exp $ */
+/* $OpenBSD: menu.c,v 1.24 2020/05/16 14:53:23 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -73,7 +73,7 @@ menu_add_item(struct menu *menu, const struct menu_item *item,
return;
if (fs != NULL)
- s = format_single(qitem, item->name, c, fs->s, fs->wl, fs->wp);
+ s = format_single_from_state(qitem, item->name, c, fs);
else
s = format_single(qitem, item->name, c, NULL, NULL, NULL);
if (*s == '\0') { /* no item if empty after format expanded */
@@ -91,7 +91,7 @@ menu_add_item(struct menu *menu, const struct menu_item *item,
cmd = item->command;
if (cmd != NULL) {
if (fs != NULL)
- s = format_single(qitem, cmd, c, fs->s, fs->wl, fs->wp);
+ s = format_single_from_state(qitem, cmd, c, fs);
else
s = format_single(qitem, cmd, c, NULL, NULL, NULL);
} else