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/spawn.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/spawn.c')
-rw-r--r-- | usr.bin/tmux/spawn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/spawn.c b/usr.bin/tmux/spawn.c index e34895a46bc..cbcff729f0e 100644 --- a/usr.bin/tmux/spawn.c +++ b/usr.bin/tmux/spawn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spawn.c,v 1.8 2019/09/19 09:02:30 nicm Exp $ */ +/* $OpenBSD: spawn.c,v 1.9 2019/09/23 15:41:11 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -155,7 +155,7 @@ spawn_window(struct spawn_context *sc, char **cause) xasprintf(cause, "couldn't add window %d", idx); return (NULL); } - default_window_size(s, NULL, &sx, &sy, -1); + default_window_size(sc->c, s, NULL, &sx, &sy, -1); if ((w = window_create(sx, sy)) == NULL) { winlink_remove(&s->windows, sc->wl); xasprintf(cause, "couldn't create window %d", idx); |