summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-refresh-client.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/cmd-refresh-client.c
parent51b08e0be793bbe8623c274a61d517f5e289aae3 (diff)
Make refresh-client force update of jobs, from Sina Siadat.
Diffstat (limited to 'usr.bin/tmux/cmd-refresh-client.c')
-rw-r--r--usr.bin/tmux/cmd-refresh-client.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-refresh-client.c b/usr.bin/tmux/cmd-refresh-client.c
index f1b9504430b..7c31af993dc 100644
--- a/usr.bin/tmux/cmd-refresh-client.c
+++ b/usr.bin/tmux/cmd-refresh-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-refresh-client.c,v 1.14 2015/05/27 13:28:04 nicm Exp $ */
+/* $OpenBSD: cmd-refresh-client.c,v 1.15 2015/09/14 10:25:52 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -65,10 +65,13 @@ cmd_refresh_client_exec(struct cmd *self, struct cmd_q *cmdq)
}
if (tty_set_size(&c->tty, w, h))
recalculate_sizes();
- } else if (args_has(args, 'S'))
+ } else if (args_has(args, 'S')) {
+ c->flags |= CLIENT_STATUSFORCE;
server_status_client(c);
- else
+ } else {
+ c->flags |= CLIENT_STATUSFORCE;
server_redraw_client(c);
+ }
return (CMD_RETURN_NORMAL);
}