Merge branch 'obsd-master'

pull/1933/head
Thomas Adam 2019-10-07 10:01:24 +01:00
commit 7323ffeef2
1 changed files with 1 additions and 1 deletions

View File

@ -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;