summaryrefslogtreecommitdiffstats
path: root/input.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-02-02 00:10:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-02-02 00:10:11 +0000
commit8363d19307c476f6434a91b79fd962814f6acc1a (patch)
treefb938ccef2efe05bd74e4569241bf38c255a1afe /input.c
parentfdeaa73342dc92bd8b0119461b6b38e38d495ffc (diff)
Move window name changes into wrapper function window_set_name, from
George Nachman.
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 1 insertions, 2 deletions
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);