diff options
author | 2015-08-28 15:51:48 +0000 | |
---|---|---|
committer | 2015-08-28 15:51:48 +0000 | |
commit | a9de400b55cb60a860ca35ae345e3686ca6abc3a (patch) | |
tree | 6fb6b0f0b2c51ebc39f3f595599f474bc9be1ec5 /usr.bin/tmux/cmd-set-option.c | |
parent | Disable interrupts while the midi uart is not in use. Avoids generating (diff) | |
download | wireguard-openbsd-a9de400b55cb60a860ca35ae345e3686ca6abc3a.tar.xz wireguard-openbsd-a9de400b55cb60a860ca35ae345e3686ca6abc3a.zip |
We now only checking for name changes when the active pane has changed,
but that can only happen when we have already been woken up by a read
event, so there is no need for a timer, we can just check the changed
flag on the end of that read event (we already loop over the windows to
check for bells etc anyway).
Diffstat (limited to 'usr.bin/tmux/cmd-set-option.c')
-rw-r--r-- | usr.bin/tmux/cmd-set-option.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c index aab181187b6..ed50d855979 100644 --- a/usr.bin/tmux/cmd-set-option.c +++ b/usr.bin/tmux/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-option.c,v 1.78 2015/08/28 13:12:20 nicm Exp $ */ +/* $OpenBSD: cmd-set-option.c,v 1.79 2015/08/28 15:51:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -180,9 +180,7 @@ cmd_set_option_exec(struct cmd *self, struct cmd_q *cmdq) if (strcmp(oe->name, "automatic-rename") == 0) { RB_FOREACH(w, windows, &windows) { if (options_get_number(&w->options, "automatic-rename")) - queue_window_name(w); - else if (event_initialized(&w->name_timer)) - evtimer_del(&w->name_timer); + w->active->flags |= PANE_CHANGED; } } if (strcmp(oe->name, "status") == 0 || |