mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Dont do extremely small reads
This commit is contained in:
parent
5edb1e2d6b
commit
63077e5432
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ func read_from_tty(pipe_r *os.File, term *tty.Term, results_channel chan<- []byt
|
|||
|
||||
buf := make([]byte, bufsize)
|
||||
for keep_going {
|
||||
if len(buf) == 0 {
|
||||
if len(buf) < 64 {
|
||||
buf = make([]byte, bufsize)
|
||||
}
|
||||
if wait_for_read_available(); !keep_going {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue