mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Merge branch 'obsd-master'
This commit is contained in:
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
|
* Now we have a pane with nothing running in it ready for the new
|
||||||
* process. Work out the command and arguments.
|
* 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");
|
cmd = options_get_string(s->options, "default-command");
|
||||||
if (cmd != NULL && *cmd != '\0') {
|
if (cmd != NULL && *cmd != '\0') {
|
||||||
argc = 1;
|
argc = 1;
|
||||||
|
Reference in New Issue
Block a user