mirror of
https://github.com/tmux/tmux.git
synced 2025-01-15 05:09:04 +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;
|
return;
|
||||||
log_debug("%s: wrote %d bytes (of %zu)", tty->path, nwrite, size);
|
log_debug("%s: wrote %d bytes (of %zu)", tty->path, nwrite, size);
|
||||||
|
|
||||||
if (EVBUFFER_LENGTH(tty->out) == 0)
|
if (EVBUFFER_LENGTH(tty->out) != 0)
|
||||||
event_del(&tty->event_out);
|
event_add(&tty->event_out, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user