summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-10-18 07:38:17 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-10-18 07:38:17 +0000
commita74fa2376ddc39279a1606ff23939f7fdf110b8b (patch)
treea3ee9e33c988a9eb68cb1714b1a68b048ff7d296
parent8d250edb131ceed5e22f9b85b84741eb6b9ebb93 (diff)
Store the right size in the pipe offset for pipe-pane.
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index e8dd853000b..ac2df208f72 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.172 2016/10/16 22:06:40 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.173 2016/10/18 07:38:16 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -970,7 +970,7 @@ window_pane_read_callback(__unused struct bufferevent *bufev, void *data)
input_parse(wp);
- wp->pipe_off = size;
+ wp->pipe_off = EVBUFFER_LENGTH(evb);
}
static void