X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=aaf868d84ca783a10040b0f15de590f227a8cf86;hb=0c94f8621b738c51c9e08abc3c52fe8dfe24b953;hp=35a840b66ef906c50e718ecd2176c98d3dfa8964;hpb=7e61f5e4c514a233250442263b62d887c9e5ca9c;p=st.git diff --git a/st.c b/st.c index 35a840b..aaf868d 100644 --- a/st.c +++ b/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 {