aboutsummaryrefslogtreecommitdiffstats
path: root/pty-unix.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-13 11:51:04 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-13 11:51:04 -0400
commit62c120e6fde579c2faf1ef1206faa4e4572b243e (patch)
tree4682e428e083b4595d6a117cf135e15811f90870 /pty-unix.c
parentf46625c7c24edb3782855315b0b1e2e022d39f2b (diff)
downloadrunes-62c120e6fde579c2faf1ef1206faa4e4572b243e.tar.gz
runes-62c120e6fde579c2faf1ef1206faa4e4572b243e.zip
flush when we're about to read, not every time we write
Diffstat (limited to 'pty-unix.c')
-rw-r--r--pty-unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pty-unix.c b/pty-unix.c
index 4664f16..6eda780 100644
--- a/pty-unix.c
+++ b/pty-unix.c
@@ -102,6 +102,7 @@ static void runes_pty_backend_read(uv_work_t *req)
RunesPtyLoopData *data;
data = (RunesPtyLoopData *)req->data;
+ runes_window_backend_request_flush(data->data.t);
data->len = read(
data->data.t->pty.master, data->buf, RUNES_PTY_BUFFER_LENGTH);
}