summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-08-28 07:49:24 +0000
committernicm <nicm@openbsd.org>2015-08-28 07:49:24 +0000
commitdbd9724db36eb23cad49927d9554867f6ed47cea (patch)
treea3007af5a44d053d189713204bf19662836b971c /usr.bin/tmux/input.c
parentAdd obviously missing #includes (diff)
downloadwireguard-openbsd-dbd9724db36eb23cad49927d9554867f6ed47cea.tar.xz
wireguard-openbsd-dbd9724db36eb23cad49927d9554867f6ed47cea.zip
Only do the automatic-rename dance if the pane has changed (seen output,
or new active pane).
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 270a7228a1e..5d8fa7f2f2d 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.81 2015/08/25 15:00:05 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.82 2015/08/28 07:49:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -844,6 +844,8 @@ input_parse(struct window_pane *wp)
if (EVBUFFER_LENGTH(evb) == 0)
return;
+ wp->flags |= PANE_CHANGED;
+
wp->window->flags |= WINDOW_ACTIVITY;
wp->window->flags &= ~WINDOW_SILENCE;