瀏覽代碼

Don't read if we chunked the input data.

Christoph Lohmann 9 年之前
父節點
當前提交
0d838b7243
共有 1 個文件被更改,包括 2 次插入1 次删除
  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 {