mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Move window name changes into wrapper function window_set_name, from
George Nachman.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user