mirror of
https://github.com/tmux/tmux.git
synced 2026-10-06 17:49:52 +00:00
Allow empty name with new-window again, from Jacob Koziej.
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. */
|
/* Set the name of the new window. */
|
||||||
if (~sc->flags & SPAWN_RESPAWN) {
|
if (~sc->flags & SPAWN_RESPAWN) {
|
||||||
free(w->name);
|
free(w->name);
|
||||||
if (sc->name == NULL || *sc->name == '\0')
|
if (sc->name == NULL)
|
||||||
w->name = default_window_name(w);
|
w->name = default_window_name(w);
|
||||||
else {
|
else {
|
||||||
w->name = xstrdup(sc->name);
|
w->name = xstrdup(sc->name);
|
||||||
|
|||||||
Reference in New Issue
Block a user