neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 4154bf9b59749df0a7e68eec8f7c8fb5f2b7efc9
parent 4b3f920477e9838c3f3a9cd67a47d1494b9cc229
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Wed,  2 Mar 2022 21:28:30 +0800

fix(pty_process_win/wait_eof_timer_cb): also check for proc->out.did_eof

Diffstat:
Msrc/nvim/os/pty_process_win.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/os/pty_process_win.c b/src/nvim/os/pty_process_win.c @@ -281,7 +281,7 @@ static void wait_eof_timer_cb(uv_timer_t *wait_eof_timer) PtyProcess *ptyproc = wait_eof_timer->data; Process *proc = (Process *)ptyproc; - if (proc->out.closed || !uv_is_readable(proc->out.uvstream)) { + if (proc->out.closed || proc->out.did_eof || !uv_is_readable(proc->out.uvstream)) { uv_timer_stop(&ptyproc->wait_eof_timer); pty_process_finish2(ptyproc); }