diff options
author | nicm <nicm> | 2019-06-20 06:51:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-06-20 06:51:36 +0000 |
commit | ae541287d303fb253b3cd75341c318dcc6a8db4a (patch) | |
tree | 6994a84529e649566cc0d1e4e4f2a6367f190422 /format.c | |
parent | 250fdd08bea74f47fc9a8962d5688db353896921 (diff) | |
download | rtmux-ae541287d303fb253b3cd75341c318dcc6a8db4a.tar.gz rtmux-ae541287d303fb253b3cd75341c318dcc6a8db4a.tar.bz2 rtmux-ae541287d303fb253b3cd75341c318dcc6a8db4a.zip |
Expand command formats in %if and move the config file loading later (to
when the first client has identified) so all the client formats are
available, fixes problems reported by Thomas Sattler.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2006,10 +2006,10 @@ void format_defaults(struct format_tree *ft, struct client *c, struct session *s, struct winlink *wl, struct window_pane *wp) { - if (c != NULL) + if (c != NULL && c->name != NULL) log_debug("%s: c=%s", __func__, c->name); else - log_debug("%s: s=none", __func__); + log_debug("%s: c=none", __func__); if (s != NULL) log_debug("%s: s=$%u", __func__, s->id); else |