mirror of https://github.com/tmux/tmux.git
Add not delete the event if more to write.
parent
d22c15107b
commit
921880e00b
4
tty.c
4
tty.c
|
@ -182,8 +182,8 @@ tty_write_callback(__unused int fd, __unused short events, void *data)
|
|||
return;
|
||||
log_debug("%s: wrote %d bytes (of %zu)", tty->path, nwrite, size);
|
||||
|
||||
if (EVBUFFER_LENGTH(tty->out) == 0)
|
||||
event_del(&tty->event_out);
|
||||
if (EVBUFFER_LENGTH(tty->out) != 0)
|
||||
event_add(&tty->event_out, NULL);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in New Issue