Explorar el Código

Don't read if we chunked the input data.

Christoph Lohmann hace 9 años
padre
commit
0d838b7243
Se han modificado 1 ficheros con 2 adiciones y 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 {