mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 12:48:56 +00:00
Add not delete the event if more to write.
This commit is contained in:
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
Block a user