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); }