diff options
author | nicm <nicm> | 2015-02-05 10:29:43 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-02-05 10:29:43 +0000 |
commit | 4946f74253de52f10beb023d4c5b88bafdb11ec4 (patch) | |
tree | 4210eaf66f9aee7998ec558ce34a1c9454ae0b71 /window-copy.c | |
parent | e5d9ceff18e37320b9243d24204a0a79d77172e4 (diff) |
Wrap all the individual format_* calls in a single format_defaults
functions.
Diffstat (limited to 'window-copy.c')
-rw-r--r-- | window-copy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/window-copy.c b/window-copy.c index 6447a2d5..223df88a 100644 --- a/window-copy.c +++ b/window-copy.c @@ -1512,9 +1512,7 @@ window_copy_copy_pipe(struct window_pane *wp, struct session *sess, return; ft = format_create(); - format_window_pane(ft, wp); - if (sess != NULL) - format_session(ft, sess); + format_defaults(ft, NULL, sess, NULL, wp); expanded = format_expand(ft, arg); job = job_run(expanded, sess, NULL, NULL, NULL); |