summaryrefslogtreecommitdiffstats
path: root/spawn.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-10-07 10:01:24 +0100
committerThomas Adam <thomas@xteddy.org>2019-10-07 10:01:24 +0100
commit7323ffeef22074911038444c0bfc675f56cd9726 (patch)
treec419c6be1a85f481fa07f6bcad6bf58a4595b3c2 /spawn.c
parent341b330a04959bc4bce47c50f73493c26fcd0b60 (diff)
parent4e2cc0ae2a518371d1411bc327f113fc4898954c (diff)
Merge branch 'obsd-master'
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 5a44df4d..2b361bd9 100644
--- a/spawn.c
+++ b/spawn.c
@@ -251,7 +251,7 @@ spawn_pane(struct spawn_context *sc, char **cause)
* 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) {
+ if (sc->argc == 0 && (~sc->flags & SPAWN_RESPAWN)) {
cmd = options_get_string(s->options, "default-command");
if (cmd != NULL && *cmd != '\0') {
argc = 1;