aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-04-27 14:33:17 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-04-27 14:33:17 +0100
commitc30e765c7b4659b472d2830bd2f114560a5205df (patch)
tree39b9df1ab1a9f7c928a3703b36bc578554386613 /menu.c
parente62db557139e6a9f4e4c7b18e315a4bf101e1575 (diff)
downloadrtmux-c30e765c7b4659b472d2830bd2f114560a5205df.tar.gz
rtmux-c30e765c7b4659b472d2830bd2f114560a5205df.tar.bz2
rtmux-c30e765c7b4659b472d2830bd2f114560a5205df.zip
Add some additional format helper functions.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menu.c b/menu.c
index 39cb50c7..fd744e7d 100644
--- a/menu.c
+++ b/menu.c
@@ -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