mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-19 01:46:33 +02:00
Move window name changes into wrapper function window_set_name, from
George Nachman.
This commit is contained in:
3
input.c
3
input.c
@@ -1552,8 +1552,7 @@ input_exit_rename(struct input_ctx *ictx)
|
||||
return;
|
||||
log_debug("%s: \"%s\"", __func__, ictx->input_buf);
|
||||
|
||||
xfree(ictx->wp->window->name);
|
||||
ictx->wp->window->name = xstrdup(ictx->input_buf);
|
||||
window_set_name(ictx->wp->window, ictx->input_buf);
|
||||
options_set_number(&ictx->wp->window->options, "automatic-rename", 0);
|
||||
|
||||
server_status_window(ictx->wp->window);
|
||||
|
Reference in New Issue
Block a user