diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-29 08:24:09 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-29 08:24:09 +0100 |
commit | 2d151d8ca53a3fbc07441e6d691fb13a2aec2ee3 (patch) | |
tree | b26507f1b566d2a516b1501109760b5d1ea51889 | |
parent | 24316bed495781dd6ae3105a5e34d582f02c31e9 (diff) | |
download | rtmux-2d151d8ca53a3fbc07441e6d691fb13a2aec2ee3.tar.gz rtmux-2d151d8ca53a3fbc07441e6d691fb13a2aec2ee3.tar.bz2 rtmux-2d151d8ca53a3fbc07441e6d691fb13a2aec2ee3.zip |
Apply format to pane status line also.
-rw-r--r-- | screen-redraw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/screen-redraw.c b/screen-redraw.c index c8e52ece..fefb935d 100644 --- a/screen-redraw.c +++ b/screen-redraw.c @@ -294,15 +294,15 @@ screen_redraw_make_pane_status(struct client *c, struct window *w, struct screen_write_ctx ctx; struct screen old; + ft = format_create(c, NULL, FORMAT_PANE|wp->id, FORMAT_STATUS); + format_defaults(ft, c, c->session, c->session->curw, wp); + if (wp == w->active) - style_apply(&gc, w->options, "pane-active-border-style", NULL); + style_apply(&gc, w->options, "pane-active-border-style", ft); else - style_apply(&gc, w->options, "pane-border-style", NULL); + style_apply(&gc, w->options, "pane-border-style", ft); fmt = options_get_string(w->options, "pane-border-format"); - ft = format_create(c, NULL, FORMAT_PANE|wp->id, FORMAT_STATUS); - format_defaults(ft, c, NULL, NULL, wp); - expanded = format_expand_time(ft, fmt); if (wp->sx < 4) wp->status_size = width = 0; |