diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-02-12 21:27:50 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-02-12 21:27:50 -0500 |
commit | e45d71466d4a997428bb19eca8c01a9194076f30 (patch) | |
tree | ca7489c69fb2729dd69698e522e546e9f9c37278 /src/pty-unix.c | |
parent | 6ee215a7797cbb15aed6136ccfcaf5daff5ae654 (diff) | |
download | runes-e45d71466d4a997428bb19eca8c01a9194076f30.tar.gz runes-e45d71466d4a997428bb19eca8c01a9194076f30.zip |
Revert "combine flushes when reading large amounts of data"
This reverts commit 6ee215a7797cbb15aed6136ccfcaf5daff5ae654.
actually, the redraw_rate stuff should already be handling this
Diffstat (limited to 'src/pty-unix.c')
-rw-r--r-- | src/pty-unix.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/pty-unix.c b/src/pty-unix.c index d712aad..6cc4996 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -20,7 +20,6 @@ extern char **environ; static int runes_pty_input_cb(void *t); -static void runes_pty_flush_cb(void *t); RunesPty *runes_pty_new() { @@ -165,10 +164,7 @@ static int runes_pty_input_cb(void *t) ((RunesTerm *)t)->scr, pty->readbuf, to_process); pty->remaininglen = to_process - processed; memmove(pty->readbuf, pty->readbuf + processed, pty->remaininglen); - if (!pty->scheduled_flush) { - runes_loop_at_idle(((RunesTerm *)t)->loop, t, runes_pty_flush_cb); - pty->scheduled_flush = 1; - } + runes_window_flush(t); return 1; } @@ -179,11 +175,3 @@ static int runes_pty_input_cb(void *t) return 0; } } - -static void runes_pty_flush_cb(void *t) -{ - RunesPty *pty = ((RunesTerm *)t)->pty; - - runes_window_flush(t); - pty->scheduled_flush = 0; -} |