summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2018-11-06 15:13:13 +0000
committernicm <nicm@openbsd.org>2018-11-06 15:13:13 +0000
commit3164385417247f05421b00f0e08236c788bea19f (patch)
treebcbe421c51cf73fb313d6811c3c65d77c81b72b7
parentsysctl page is section 2 now; (diff)
downloadwireguard-openbsd-3164385417247f05421b00f0e08236c788bea19f.tar.xz
wireguard-openbsd-3164385417247f05421b00f0e08236c788bea19f.zip
Correctly unzoom and redraw panes in switch-client.
-rw-r--r--usr.bin/tmux/cmd-switch-client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c
index 63235121687..654ab4dc05f 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.54 2018/10/18 08:38:01 nicm Exp $ */
+/* $OpenBSD: cmd-switch-client.c,v 1.55 2018/11/06 15:13:13 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -113,8 +113,11 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
if (item->client == NULL)
return (CMD_RETURN_NORMAL);
if (wl != NULL) {
- if (wp != NULL)
+ server_unzoom_window(wl->window);
+ if (wp != NULL) {
+ window_redraw_active_switch(wp->window, wp);
window_set_active_pane(wp->window, wp);
+ }
session_set_current(s, wl);
cmd_find_from_session(&item->shared->current, s, 0);
}