summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2013-03-25 11:38:44 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2013-03-25 11:38:44 +0000
commite4bb4d8ee784a3c2e36cb1ee405ecfdf43237ab9 (patch)
treef4c34cbb9814b72365b7ea295674156c2149cc2c /usr.bin/tmux
parent2571dc8df8b8909dde82bec145126993f6be94cf (diff)
Don't add prefix to %output pane id.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/control-notify.c8
-rw-r--r--usr.bin/tmux/tmux.18
2 files changed, 7 insertions, 9 deletions
diff --git a/usr.bin/tmux/control-notify.c b/usr.bin/tmux/control-notify.c
index 1a30b1e8239..b1f5b8fd2b0 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.4 2013/03/25 10:11:45 nicm Exp $ */
+/* $OpenBSD: control-notify.c,v 1.5 2013/03/25 11:38:43 nicm Exp $ */
/*
* Copyright (c) 2012 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -45,7 +45,7 @@ control_notify_input(struct client *c, struct window_pane *wp,
*/
if (winlink_find_by_window(&c->session->windows, wp->window) != NULL) {
message = evbuffer_new();
- evbuffer_add_printf(message, "%%output %%%u ", wp->id);
+ evbuffer_add_printf(message, "%%output %u ", wp->id);
for (i = 0; i < len; i++)
evbuffer_add_printf(message, "%02hhx", buf[i]);
control_write_buffer(c, message);
@@ -141,7 +141,7 @@ control_notify_window_renamed(struct window *w)
continue;
s = c->session;
- control_write(c, "%%window-renamed %u %s", w->id, w->name);
+ control_write(c, "%%window-renamed %u %s", w->id, w->name);
}
}
@@ -154,7 +154,7 @@ control_notify_attached_session_changed(struct client *c)
return;
s = c->session;
- control_write(c, "%%session-changed %d %s", s->id, s->name);
+ control_write(c, "%%session-changed %u %s", s->id, s->name);
}
void
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index c9a08475412..472388ab1df 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.346 2013/03/25 11:38:15 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.347 2013/03/25 11:38:43 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@@ -3668,10 +3668,8 @@ The layout of a window with ID
changed.
The new layout is
.Ar window-layout .
-.It Ic %output Ar source-pane Ar value
-A window pane,
-.Ar source-pane ,
-produced output.
+.It Ic %output Ar pane-id Ar value
+A window pane produced output.
.Ar value
contains that output with each byte encoded as two hex digits.
.It Ic %session-changed Ar session-id Ar name