Explorar o código

Don't read if we chunked the input data.

Christoph Lohmann %!s(int64=9) %!d(string=hai) anos
pai
achega
0d838b7243
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      st.c

+ 2 - 1
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 {