diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-04 22:43:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-04 22:43:11 +0000 |
commit | a02c7e804c8c6b9984e9d09c305199ccec92763f (patch) | |
tree | 396a9d8eab87fa47c0d62e12f3ec043309a99cf1 /cmd-pipe-pane.c | |
parent | 06ffed32169a6bf449f543803ee8b87c439ae94b (diff) |
Convert the window pane (pty master side) fd over to use a bufferevent.
The evbuffer API is very similar to the existing tmux buffer API so this was
remarkably painless. Not many possible ways to do it, I suppose.
Diffstat (limited to 'cmd-pipe-pane.c')
-rw-r--r-- | cmd-pipe-pane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c index 4565174e..d0b0fcca 100644 --- a/cmd-pipe-pane.c +++ b/cmd-pipe-pane.c @@ -113,7 +113,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx) close(pipe_fd[1]); wp->pipe_fd = pipe_fd[0]; - wp->pipe_off = BUFFER_USED(wp->in); + wp->pipe_off = EVBUFFER_LENGTH(wp->event->input); wp->pipe_event = bufferevent_new(wp->pipe_fd, NULL, NULL, cmd_pipe_pane_error_callback, wp); |