mirror of
https://github.com/tmux/tmux.git
synced 2025-01-13 03:48:51 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
7323ffeef2
2
spawn.c
2
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;
|
||||
|
Loading…
Reference in New Issue
Block a user