diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-02-02 00:10:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-02-02 00:10:11 +0000 |
commit | 8363d19307c476f6434a91b79fd962814f6acc1a (patch) | |
tree | fb938ccef2efe05bd74e4569241bf38c255a1afe /cmd-new-session.c | |
parent | fdeaa73342dc92bd8b0119461b6b38e38d495ffc (diff) | |
download | rtmux-8363d19307c476f6434a91b79fd962814f6acc1a.tar.gz rtmux-8363d19307c476f6434a91b79fd962814f6acc1a.tar.bz2 rtmux-8363d19307c476f6434a91b79fd962814f6acc1a.zip |
Move window name changes into wrapper function window_set_name, from
George Nachman.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r-- | cmd-new-session.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index d576dc61..5fb9e62c 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -217,8 +217,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx) if (cmd != NULL && args_has(args, 'n')) { w = s->curw->window; - xfree(w->name); - w->name = xstrdup(args_get(args, 'n')); + window_set_name(w, args_get(args, 'n')); options_set_number(&w->options, "automatic-rename", 0); } |