From f84d32ca5e7b3820134c4fa8296c9c85aa015b9a Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 31 Dec 2015 18:14:13 +0000 Subject: [PATCH] Use saved pipe buffer offset when writing to pipe, from Nicolas Viennot. --- window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.c b/window.c index 67d047b9..cfb44ae3 100644 --- a/window.c +++ b/window.c @@ -948,7 +948,7 @@ window_pane_read_callback(__unused struct bufferevent *bufev, void *data) new_size = EVBUFFER_LENGTH(evb) - wp->pipe_off; if (wp->pipe_fd != -1 && new_size > 0) { - new_data = EVBUFFER_DATA(evb); + new_data = EVBUFFER_DATA(evb) + wp->pipe_off; bufferevent_write(wp->pipe_event, new_data, new_size); }