aboutsummaryrefslogtreecommitdiff
path: root/spawn.c
diff options
context:
space:
mode:
authornicm <nicm>2019-09-23 15:41:11 +0000
committernicm <nicm>2019-09-23 15:41:11 +0000
commit77deef733bfc547325d7c6db3e0274b1c52281b9 (patch)
treef6fd5b6b2f996679ed16a1a451b39a6f2e330980 /spawn.c
parent647887b794c00285047aa54ac0d44ae50c7847d7 (diff)
downloadrtmux-77deef733bfc547325d7c6db3e0274b1c52281b9.tar.gz
rtmux-77deef733bfc547325d7c6db3e0274b1c52281b9.tar.bz2
rtmux-77deef733bfc547325d7c6db3e0274b1c52281b9.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 'spawn.c')
-rw-r--r--spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spawn.c b/spawn.c
index 1917955e..71361c9f 100644
--- a/spawn.c
+++ b/spawn.c
@@ -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);