[hackers] [st] Don't read if we chunked the input data. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sun, 30 Aug 2015 11:30:15 +0200 (CEST)

commit 0d838b72437c6cac0d87366352939fdb86c2b697
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Sun Aug 30 11:28:35 2015 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Sun Aug 30 11:28:35 2015 +0200

    Don't read if we chunked the input data.

diff --git a/st.c b/st.c
index 1df4fde..e76aaf3 100644
--- a/st.c
+++ b/st.c
_AT_@ -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 {
Received on Sun Aug 30 2015 - 11:30:15 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 30 2015 - 11:36:10 CEST