Make refresh-client force update of jobs, from Sina Siadat.

This commit is contained in:
nicm
2015-09-14 10:25:52 +00:00
parent 901c2eb20a
commit 16efa84838
5 changed files with 26 additions and 12 deletions

View File

@ -503,7 +503,10 @@ status_replace(struct client *c, struct winlink *wl, const char *fmt, time_t t)
if (fmt == NULL)
return (xstrdup(""));
ft = format_create_status(1);
if (c->flags & CLIENT_STATUSFORCE)
ft = format_create_flags(FORMAT_STATUS|FORMAT_FORCE);
else
ft = format_create_flags(FORMAT_STATUS);
format_defaults(ft, c, NULL, wl, NULL);
expanded = format_expand_time(ft, fmt, t);