summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/control-notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/control-notify.c')
-rw-r--r--usr.bin/tmux/control-notify.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/usr.bin/tmux/control-notify.c b/usr.bin/tmux/control-notify.c
index f23d4618c99..93a8659a453 100644
--- a/usr.bin/tmux/control-notify.c
+++ b/usr.bin/tmux/control-notify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control-notify.c,v 1.2 2012/09/25 07:41:22 nicm Exp $ */
+/* $OpenBSD: control-notify.c,v 1.3 2013/03/25 10:04:23 nicm Exp $ */
/*
* Copyright (c) 2012 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -104,10 +104,7 @@ control_notify_window_unlinked(unused struct session *s, struct window *w)
continue;
cs = c->session;
- if (winlink_find_by_window_id(&cs->windows, w->id) != NULL)
- control_write(c, "%%window-close %u", w->id);
- else
- control_write(c, "%%unlinked-window-close %u", w->id);
+ control_write(c, "%%window-close %u", w->id);
}
}
@@ -144,13 +141,7 @@ control_notify_window_renamed(struct window *w)
continue;
s = c->session;
- if (winlink_find_by_window_id(&s->windows, w->id) != NULL) {
- control_write(c, "%%window-renamed %u %s",
- w->id, w->name);
- } else {
- control_write(c, "%%unlinked-window-renamed %u %s",
- w->id, w->name);
- }
+ control_write(c, "%%window-renamed %u %s", w->id, w->name);
}
}