From 0d838b72437c6cac0d87366352939fdb86c2b697 Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Sun, 30 Aug 2015 11:28:35 +0200 Subject: Don't read if we chunked the input data. --- st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/st.c b/st.c index 1df4fde..e76aaf3 100644 --- a/st.c +++ b/st.c @@ -1531,7 +1531,8 @@ ttywrite(const char *s, size_t n) * This means the buffer is getting full * again. Empty it. */ - ttyread(); + if (n < 256) + ttyread(); n -= r; s += r; } else { -- cgit v1.2.3-13-gbd6f