diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-09-28 20:11:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-09-28 20:11:22 +0000 |
commit | b0924492332f92316c81dcc1d85768892586d82d (patch) | |
tree | cca9adb0270cd5b3b23ba7db8f99087a3510b387 /usr.bin | |
parent | 7bc5d2b90ac66b2b2d24ee69fa7ec4e21788ce37 (diff) |
Add -S option to refresh-client to redraw status line, from Marco Beck.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/cmd-refresh-client.c | 12 | ||||
-rw-r--r-- | usr.bin/tmux/tmux.1 | 12 |
2 files changed, 17 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-refresh-client.c b/usr.bin/tmux/cmd-refresh-client.c index b439f53e5fd..34eeee8c553 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.5 2011/01/04 00:42:47 nicm Exp $ */ +/* $OpenBSD: cmd-refresh-client.c,v 1.6 2011/09/28 20:11:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -28,8 +28,8 @@ int cmd_refresh_client_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_refresh_client_entry = { "refresh-client", "refresh", - "t:", 0, 0, - CMD_TARGET_CLIENT_USAGE, + "St:", 0, 0, + "[-S] " CMD_TARGET_CLIENT_USAGE, 0, NULL, NULL, @@ -45,7 +45,11 @@ cmd_refresh_client_exec(struct cmd *self, struct cmd_ctx *ctx) if ((c = cmd_find_client(ctx, args_get(args, 't'))) == NULL) return (-1); - server_redraw_client(c); + if (args_has(args, 'S')) { + status_update_jobs(c); + server_status_client(c); + } else + server_redraw_client(c); return (0); } diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index b31cc40d9b2..bb2298067f7 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.247 2011/09/23 18:33:43 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.248 2011/09/28 20:11:21 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: September 23 2011 $ +.Dd $Mdocdate: September 28 2011 $ .Dt TMUX 1 .Os .Sh NAME @@ -686,11 +686,17 @@ or are invalid if .Fl t is used. -.It Ic refresh-client Op Fl t Ar target-client +.It Xo Ic refresh-client +.Op Fl S +.Op Fl t Ar target-client +.Xc .D1 (alias: Ic refresh ) Refresh the current client if bound to a key, or a single client if one is given with .Fl t . +If +.Fl S +is specified, only update the client's status bar. .It Xo Ic rename-session .Op Fl t Ar target-session .Ar new-name |