aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2015-08-30 11:28:35 +0200
committerChristoph Lohmann <20h@r-36.net>2015-08-30 11:28:35 +0200
commit0d838b72437c6cac0d87366352939fdb86c2b697 (patch)
treef6e7fb1e90e70c2bf9e3b256d93b7c8b0141af32
parent9984ad4ba730b043d064095dca42b490904e38f3 (diff)
Don't read if we chunked the input data.
-rw-r--r--st.c3
1 files changed, 2 insertions, 1 deletions
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 {