diff options
author | 2019-09-23 15:41:11 +0000 | |
---|---|---|
committer | 2019-09-23 15:41:11 +0000 | |
commit | 1be6ca1c7524243f80592d7a59e93ad58e7a6cd5 (patch) | |
tree | d93d717553f77cd438c656c215904856fa08f797 /usr.bin/tmux/cmd-resize-window.c | |
parent | When printing the scsi_link info under SCSIDEBUG show state, luns, (diff) | |
download | wireguard-openbsd-1be6ca1c7524243f80592d7a59e93ad58e7a6cd5.tar.xz wireguard-openbsd-1be6ca1c7524243f80592d7a59e93ad58e7a6cd5.zip |
Use the correct size for new windows when window-size is latest,
reported by Vamsi Krishna Avula in GitHub issue 1917.
Diffstat (limited to 'usr.bin/tmux/cmd-resize-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-resize-window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-resize-window.c b/usr.bin/tmux/cmd-resize-window.c index 07b0c269e30..f3e37269017 100644 --- a/usr.bin/tmux/cmd-resize-window.c +++ b/usr.bin/tmux/cmd-resize-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-resize-window.c,v 1.1 2018/10/18 08:38:01 nicm Exp $ */ +/* $OpenBSD: cmd-resize-window.c,v 1.2 2019/09/23 15:41:11 nicm Exp $ */ /* * Copyright (c) 2018 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -98,9 +98,9 @@ cmd_resize_window_exec(struct cmd *self, struct cmdq_item *item) sy += adjust; if (args_has(args, 'A')) - default_window_size(s, w, &sx, &sy, WINDOW_SIZE_LARGEST); + default_window_size(NULL, s, w, &sx, &sy, WINDOW_SIZE_LARGEST); else if (args_has(args, 'a')) - default_window_size(s, w, &sx, &sy, WINDOW_SIZE_SMALLEST); + default_window_size(NULL, s, w, &sx, &sy, WINDOW_SIZE_SMALLEST); options_set_number(w->options, "window-size", WINDOW_SIZE_MANUAL); resize_window(w, sx, sy); |