From dea309cf8d818665043aa9df0b3f1adb63ab0010 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 Jul 2026 07:19:24 +0000 Subject: [PATCH] Allow empty name with new-window again, from Jacob Koziej. --- spawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spawn.c b/spawn.c index 3a211e3c5..09eec948d 100644 --- a/spawn.c +++ b/spawn.c @@ -179,7 +179,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);