summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-09-14 10:25:53 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-09-14 10:25:53 +0000
commitcf31c77017166a71e63b51a4ab1524cc3091daae (patch)
tree5247a2dc14c91f1cd1ad9401e8055f183f9aa68b /usr.bin/tmux/status.c
parent51b08e0be793bbe8623c274a61d517f5e289aae3 (diff)
Make refresh-client force update of jobs, from Sina Siadat.
Diffstat (limited to 'usr.bin/tmux/status.c')
-rw-r--r--usr.bin/tmux/status.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/status.c b/usr.bin/tmux/status.c
index 4d18ad4037e..0283c9f4579 100644
--- a/usr.bin/tmux/status.c
+++ b/usr.bin/tmux/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.134 2015/08/29 09:25:00 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.135 2015/09/14 10:25:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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);