summaryrefslogtreecommitdiffstats
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2015-02-05 10:29:43 +0000
committernicm <nicm>2015-02-05 10:29:43 +0000
commit4946f74253de52f10beb023d4c5b88bafdb11ec4 (patch)
tree4210eaf66f9aee7998ec558ce34a1c9454ae0b71 /cmd-run-shell.c
parente5d9ceff18e37320b9243d24204a0a79d77172e4 (diff)
Wrap all the individual format_* calls in a single format_defaults
functions.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index b47c2827..5d6d178b 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -93,12 +93,7 @@ cmd_run_shell_exec(struct cmd *self, struct cmd_q *cmdq)
}
ft = format_create();
- if (s != NULL)
- format_session(ft, s);
- if (s != NULL && wl != NULL)
- format_winlink(ft, s, wl);
- if (wp != NULL)
- format_window_pane(ft, wp);
+ format_defaults(ft, NULL, s, wl, wp);
shellcmd = format_expand(ft, args->argv[0]);
format_free(ft);