diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-03-06 15:35:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2020-03-06 15:35:04 +0000 |
commit | 7860a79d441a8e88f7725c16674f4193cd10492e (patch) | |
tree | 2398863eee4222ce4ddc26ff30b869a4154054f8 /usr.bin/tmux/cmd-switch-client.c | |
parent | 7c013f04ff9532624216ce179029bfac32a5cbd2 (diff) |
Update latest client for target session on switch-client.
Diffstat (limited to 'usr.bin/tmux/cmd-switch-client.c')
-rw-r--r-- | usr.bin/tmux/cmd-switch-client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c index a2f2a1db5c2..97721ac311e 100644 --- a/usr.bin/tmux/cmd-switch-client.c +++ b/usr.bin/tmux/cmd-switch-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-switch-client.c,v 1.58 2019/08/14 09:58:31 nicm Exp $ */ +/* $OpenBSD: cmd-switch-client.c,v 1.59 2020/03/06 15:35:03 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -142,10 +142,11 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item) session_update_activity(s, NULL); gettimeofday(&s->last_attached_time, NULL); - recalculate_sizes(); server_check_unattached(); server_redraw_client(c); s->curw->flags &= ~WINLINK_ALERTFLAGS; + s->curw->window->latest = c; + recalculate_sizes(); alerts_check_session(s); return (CMD_RETURN_NORMAL); |