=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/spawn.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- src/usr.bin/tmux/spawn.c 2021/03/02 11:00:38 1.27 +++ src/usr.bin/tmux/spawn.c 2021/03/11 06:31:05 1.28 @@ -1,4 +1,4 @@ -/* $OpenBSD: spawn.c,v 1.27 2021/03/02 11:00:38 nicm Exp $ */ +/* $OpenBSD: spawn.c,v 1.28 2021/03/11 06:31:05 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott @@ -261,7 +261,10 @@ layout_init(w, new_wp); } else { new_wp = window_add_pane(w, sc->wp0, hlimit, sc->flags); - layout_assign_pane(sc->lc, new_wp); + if (sc->flags & SPAWN_ZOOM) + layout_assign_pane(sc->lc, new_wp, 1); + else + layout_assign_pane(sc->lc, new_wp, 0); } /*