=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/spawn.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/tmux/spawn.c 2019/09/23 15:41:11 1.9 --- src/usr.bin/tmux/spawn.c 2019/10/07 07:14:07 1.10 *************** *** 1,4 **** ! /* $OpenBSD: spawn.c,v 1.9 2019/09/23 15:41:11 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: spawn.c,v 1.10 2019/10/07 07:14:07 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott *************** *** 253,259 **** * Now we have a pane with nothing running in it ready for the new * process. Work out the command and arguments. */ ! if (sc->argc == 0) { cmd = options_get_string(s->options, "default-command"); if (cmd != NULL && *cmd != '\0') { argc = 1; --- 253,259 ---- * Now we have a pane with nothing running in it ready for the new * process. Work out the command and arguments. */ ! if (sc->argc == 0 && (~sc->flags & SPAWN_RESPAWN)) { cmd = options_get_string(s->options, "default-command"); if (cmd != NULL && *cmd != '\0') { argc = 1;