Don't read if we chunked the input data. - st - simple terminal
HTML git clone https://git.parazyd.org/st
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0d838b72437c6cac0d87366352939fdb86c2b697
DIR parent 9984ad4ba730b043d064095dca42b490904e38f3
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 30 Aug 2015 11:28:35 +0200
Don't read if we chunked the input data.
Diffstat:
M st.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git 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 {