From 8363d19307c476f6434a91b79fd962814f6acc1a Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 2 Feb 2012 00:10:11 +0000 Subject: Move window name changes into wrapper function window_set_name, from George Nachman. --- input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 957053da..3bbb7ef2 100644 --- a/input.c +++ b/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); -- cgit