diff options
author | Tiago Cunha <tcunha@gmx.com> | 2011-10-02 11:33:14 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2011-10-02 11:33:14 +0000 |
commit | f0c3e9babe0f51052b4b26188467fe2d69f49213 (patch) | |
tree | 4dbf0a3bef8b1b210b56c4747667ca82a7b39ff7 | |
parent | edd59d9e0f698aca04841365400853a3aa03b47f (diff) | |
download | rtmux-f0c3e9babe0f51052b4b26188467fe2d69f49213.tar.gz rtmux-f0c3e9babe0f51052b4b26188467fe2d69f49213.tar.bz2 rtmux-f0c3e9babe0f51052b4b26188467fe2d69f49213.zip |
Sync OpenBSD patchset 961:
Add -S option to refresh-client to redraw status line, from Marco Beck.
-rw-r--r-- | cmd-refresh-client.c | 10 | ||||
-rw-r--r-- | tmux.1 | 10 |
2 files changed, 15 insertions, 5 deletions
diff --git a/cmd-refresh-client.c b/cmd-refresh-client.c index 662ca752..cf3692e1 100644 --- a/cmd-refresh-client.c +++ b/cmd-refresh-client.c @@ -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); } @@ -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 @@ -690,11 +690,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 |