mirror of
https://github.com/alrayyes/st.git
synced 2024-11-22 03:16:22 +00:00
Don't read if we chunked the input data.
This commit is contained in:
parent
9984ad4ba7
commit
0d838b7243
1 changed files with 2 additions and 1 deletions
3
st.c
3
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 {
|
||||
|
|
Loading…
Reference in a new issue