summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/control-notify.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-02-05 10:29:44 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-02-05 10:29:44 +0000
commitf55493a26fd9dcc42751e57ecacda0f2dc35bd79 (patch)
tree6c923cf0baeb9e58228f88ce491cb5df6e862075 /usr.bin/tmux/control-notify.c
parenta260dfa82e0bf8576b9a0c10e17ea4eb5a87b620 (diff)
Wrap all the individual format_* calls in a single format_defaults
functions.
Diffstat (limited to 'usr.bin/tmux/control-notify.c')
-rw-r--r--usr.bin/tmux/control-notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/control-notify.c b/usr.bin/tmux/control-notify.c
index 14e20ea67d2..f5050733c3e 100644
--- a/usr.bin/tmux/control-notify.c
+++ b/usr.bin/tmux/control-notify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control-notify.c,v 1.9 2014/04/23 10:14:29 nicm Exp $ */
+/* $OpenBSD: control-notify.c,v 1.10 2015/02/05 10:29:43 nicm Exp $ */
/*
* Copyright (c) 2012 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -88,7 +88,7 @@ control_notify_window_layout_changed(struct window *w)
ft = format_create();
wl = winlink_find_by_window(&s->windows, w);
if (wl != NULL) {
- format_winlink(ft, c->session, wl);
+ format_defaults(ft, c, NULL, wl, NULL);
control_write(c, "%s", format_expand(ft, template));
}
format_free(ft);