tDon't read if we chunked the input data. - st - [fork] customized build of st,… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0d838b72437c6cac0d87366352939fdb86c2b697 | |
parent 9984ad4ba730b043d064095dca42b490904e38f3 | |
Author: Christoph Lohmann <[email protected]> | |
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(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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 { |