mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Fix respawn-pane/window if default-command is set, reported by Janos Barbero.
This commit is contained in:
parent
02253d1e5c
commit
4e2cc0ae2a
2
spawn.c
2
spawn.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user