mirror of
https://github.com/tmux/tmux.git
synced 2026-07-09 10:59:30 +00:00
Merge branch 'obsd-master'
This commit is contained in:
2
spawn.c
2
spawn.c
@@ -177,7 +177,7 @@ spawn_window(struct spawn_context *sc, char **cause)
|
||||
/* Set the name of the new window. */
|
||||
if (~sc->flags & SPAWN_RESPAWN) {
|
||||
free(w->name);
|
||||
if (sc->name == NULL || *sc->name == '\0')
|
||||
if (sc->name == NULL)
|
||||
w->name = default_window_name(w);
|
||||
else {
|
||||
w->name = xstrdup(sc->name);
|
||||
|
||||
Reference in New Issue
Block a user