diff options
author | nicm <nicm> | 2019-10-07 07:14:07 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-10-07 07:14:07 +0000 |
commit | 4e2cc0ae2a518371d1411bc327f113fc4898954c (patch) | |
tree | 5c63ee877308d526fe817d5da0c8b51a52d5c158 /spawn.c | |
parent | 02253d1e5c881be95fd2fc37b4c4209640b6b266 (diff) | |
download | rtmux-4e2cc0ae2a518371d1411bc327f113fc4898954c.tar.gz rtmux-4e2cc0ae2a518371d1411bc327f113fc4898954c.tar.bz2 rtmux-4e2cc0ae2a518371d1411bc327f113fc4898954c.zip |
Fix respawn-pane/window if default-command is set, reported by Janos Barbero.
Diffstat (limited to 'spawn.c')
-rw-r--r-- | spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -253,7 +253,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; |