aboutsummaryrefslogtreecommitdiff
path: root/st.c
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 /st.c
parent9984ad4ba730b043d064095dca42b490904e38f3 (diff)
downloadst-0d838b72437c6cac0d87366352939fdb86c2b697.tar.gz
st-0d838b72437c6cac0d87366352939fdb86c2b697.zip
Don't read if we chunked the input data.
Diffstat (limited to 'st.c')
-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)
1531 * This means the buffer is getting full 1531 * This means the buffer is getting full
1532 * again. Empty it. 1532 * again. Empty it.
1533 */ 1533 */
1534 ttyread(); 1534 if (n < 256)
1535 ttyread();
1535 n -= r; 1536 n -= r;
1536 s += r; 1537 s += r;
1537 } else { 1538 } else {