summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/names.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2012-04-08 06:47:26 +0000
committernicm <nicm@openbsd.org>2012-04-08 06:47:26 +0000
commitc459a51c99edc1fa44868e74b9bb5c3c9f935159 (patch)
tree14c7e66a39c3fae2c6af2bab5e495a29239b0408 /usr.bin/tmux/names.c
parentmatch BELKIN F7D2102; from Seth Jackson (diff)
downloadwireguard-openbsd-c459a51c99edc1fa44868e74b9bb5c3c9f935159.tar.xz
wireguard-openbsd-c459a51c99edc1fa44868e74b9bb5c3c9f935159.zip
Do not fire name timer when automatic-rename is off, from Tim Ruehsen a
while ago.
Diffstat (limited to 'usr.bin/tmux/names.c')
-rw-r--r--usr.bin/tmux/names.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/names.c b/usr.bin/tmux/names.c
index 73be30c24f4..167ae71852c 100644
--- a/usr.bin/tmux/names.c
+++ b/usr.bin/tmux/names.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: names.c,v 1.13 2012/03/17 18:24:07 nicm Exp $ */
+/* $OpenBSD: names.c,v 1.14 2012/04/08 06:47:26 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -49,9 +49,7 @@ window_name_callback(unused int fd, unused short events, void *data)
struct window *w = data;
char *name, *wname;
- queue_window_name(w); /* XXX even if the option is off? */
- if (!options_get_number(&w->options, "automatic-rename"))
- return;
+ queue_window_name(w); /* stopped when option turned off */
if (w->active->screen != &w->active->base)
name = NULL;