From d388dbdea9ceacacadc27a36ccc968fa7d6070ec Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 8 Apr 2020 10:58:09 +0000 Subject: [PATCH] Pass the cmd item to format expansion so that mouse formats work. --- cmd-display-menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd-display-menu.c b/cmd-display-menu.c index 852c540e..b4db7331 100644 --- a/cmd-display-menu.c +++ b/cmd-display-menu.c @@ -190,7 +190,7 @@ cmd_display_menu_exec(struct cmd *self, struct cmdq_item *item) return (CMD_RETURN_NORMAL); if (args_has(args, 'T')) - title = format_single(NULL, args_get(args, 'T'), c, s, wl, wp); + title = format_single(item, args_get(args, 'T'), c, s, wl, wp); else title = xstrdup(""); @@ -298,13 +298,13 @@ cmd_display_popup_exec(struct cmd *self, struct cmdq_item *item) value = args_get(args, 'd'); if (value != NULL) - cwd = format_single(NULL, value, c, fs->s, fs->wl, fs->wp); + cwd = format_single(item, value, c, fs->s, fs->wl, fs->wp); else cwd = xstrdup(server_client_get_cwd(c, fs->s)); value = args_get(args, 'R'); if (value != NULL) - shellcmd = format_single(NULL, value, c, fs->s, fs->wl, fs->wp); + shellcmd = format_single(item, value, c, fs->s, fs->wl, fs->wp); if (args_has(args, 'K')) flags |= POPUP_WRITEKEYS;