summaryrefslogtreecommitdiffstats
path: root/spawn.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-03-02 12:01:25 +0000
committerThomas Adam <thomas@xteddy.org>2021-03-02 12:01:25 +0000
commit2301bee87ddfcdc307d8cb4e3f62eed9fb94d311 (patch)
treeff292eb08ed29269c7829f3908cc9e265663fe02 /spawn.c
parent48131c6d020220e6998512198b73819c5a085db9 (diff)
parent81f9a23d25237f2b0c52a2867ddd2db59cc8f368 (diff)
Merge branch 'obsd-master' into master
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/spawn.c b/spawn.c
index b9fe2a2d..c47b11f4 100644
--- a/spawn.c
+++ b/spawn.c
@@ -182,7 +182,7 @@ spawn_window(struct spawn_context *sc, char **cause)
NULL);
options_set_number(w->options, "automatic-rename", 0);
} else
- w->name = xstrdup(default_window_name(w));
+ w->name = default_window_name(w);
}
/* Switch to the new window if required. */
@@ -263,8 +263,9 @@ 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 and store the working directory.
+ * Now we have a pane with nothing running in it ready for the new
+ * process. Work out the command and arguments and store the working
+ * directory.
*/
if (sc->argc == 0 && (~sc->flags & SPAWN_RESPAWN)) {
cmd = options_get_string(s->options, "default-command");