aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-03-02 21:28:30 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-03-02 21:28:36 +0800
commit4154bf9b59749df0a7e68eec8f7c8fb5f2b7efc9 (patch)
tree072cd116b854ada5398ff9a950db5975fa30187e
parent4b3f920477e9838c3f3a9cd67a47d1494b9cc229 (diff)
downloadrneovim-4154bf9b59749df0a7e68eec8f7c8fb5f2b7efc9.tar.gz
rneovim-4154bf9b59749df0a7e68eec8f7c8fb5f2b7efc9.tar.bz2
rneovim-4154bf9b59749df0a7e68eec8f7c8fb5f2b7efc9.zip
fix(pty_process_win/wait_eof_timer_cb): also check for proc->out.did_eof
-rw-r--r--src/nvim/os/pty_process_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/pty_process_win.c b/src/nvim/os/pty_process_win.c
index f78f3e66f5..99231968a2 100644
--- 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);
}