mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Add not delete the event if more to write.
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user