diff options
author | 2012-02-02 00:10:11 +0000 | |
---|---|---|
committer | 2012-02-02 00:10:11 +0000 | |
commit | fb51d8993e29c661f9cdbf7b13a202c93508232c (patch) | |
tree | c09c60d510c2f22ea81c7175fcc893f5367065f9 /usr.bin/tmux/input.c | |
parent | Do not change pane when changing window with mouse on status line, (diff) | |
download | wireguard-openbsd-fb51d8993e29c661f9cdbf7b13a202c93508232c.tar.xz wireguard-openbsd-fb51d8993e29c661f9cdbf7b13a202c93508232c.zip |
Move window name changes into wrapper function window_set_name, from
George Nachman.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index cd821f488e6..3094a81de9a 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.47 2012/01/21 08:23:12 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.48 2012/02/02 00:10:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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); |