diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-08 22:58:38 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-08 22:58:38 +0000 |
commit | 971a7b2fe0d86c9e41bd0802997d20c61eeed2a3 (patch) | |
tree | 443ec5a72c5bafef68cc023d98ea013bd9b00c94 /server-window.c | |
parent | 7851bb81f5c445422da168393e4f617069c18925 (diff) |
Sync OpenBSD patchset 495:
Switch tty fds over to a bufferevent.
Diffstat (limited to 'server-window.c')
-rw-r--r-- | server-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server-window.c b/server-window.c index 3890c855..b4ebcf0a 100644 --- a/server-window.c +++ b/server-window.c @@ -1,4 +1,4 @@ -/* $Id: server-window.c,v 1.6 2009-11-08 22:53:13 tcunha Exp $ */ +/* $Id: server-window.c,v 1.7 2009-11-08 22:58:37 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -87,7 +87,8 @@ server_window_backoff(struct window_pane *wp) continue; if (c->session->curw->window != wp->window) continue; - if (BUFFER_USED(c->tty.out) > BACKOFF_THRESHOLD) + + if (EVBUFFER_LENGTH(c->tty.event->output) > BACKOFF_THRESHOLD) return (1); } return (0); |