X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=e76aaf3338ad4e5c5d3d114532cef1d702d8f307;hb=0d838b72437c6cac0d87366352939fdb86c2b697;hp=1df4fde1cbd927be170fabfcfd9d6e48e2960eac;hpb=9984ad4ba730b043d064095dca42b490904e38f3;p=st.git diff --git a/st.c b/st.c index 1df4fde..e76aaf3 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 {