aboutsummaryrefslogtreecommitdiff
path: root/cmd-switch-client.c
diff options
context:
space:
mode:
authornicm <nicm>2021-03-11 06:31:05 +0000
committernicm <nicm>2021-03-11 06:31:05 +0000
commitd98f9f7fe56beefeb294184ffaed24b7ea510a97 (patch)
tree46adbfe0fbc5e7f4a782792470c8d8e5465ee79c /cmd-switch-client.c
parent7f87280cd539c26a9b088cca2de895dd86b60449 (diff)
downloadrtmux-d98f9f7fe56beefeb294184ffaed24b7ea510a97.tar.gz
rtmux-d98f9f7fe56beefeb294184ffaed24b7ea510a97.tar.bz2
rtmux-d98f9f7fe56beefeb294184ffaed24b7ea510a97.zip
Add split-window -Z to start the pane zoomed, GitHub issue 2591.
Diffstat (limited to 'cmd-switch-client.c')
-rw-r--r--cmd-switch-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c
index fc7f9d75..b10496e3 100644
--- a/cmd-switch-client.c
+++ b/cmd-switch-client.c
@@ -118,7 +118,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
return (CMD_RETURN_NORMAL);
if (wl != NULL && wp != NULL && wp != wl->window->active) {
w = wl->window;
- if (window_push_zoom(w, args_has(args, 'Z')))
+ if (window_push_zoom(w, 0, args_has(args, 'Z')))
server_redraw_window(w);
window_redraw_active_switch(w, wp);
window_set_active_pane(w, wp, 1);