diff options
Diffstat (limited to 'src/nvim/os/pty_process_win.c')
| -rw-r--r-- | src/nvim/os/pty_process_win.c | 2 | 
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 c5f8efadff..290668bca3 100644 --- a/src/nvim/os/pty_process_win.c +++ b/src/nvim/os/pty_process_win.c @@ -252,7 +252,7 @@ static void pty_process_finish2(PtyProcess *ptyproc)    DWORD exit_code = 0;    GetExitCodeProcess(ptyproc->process_handle, &exit_code); -  proc->status = (int)exit_code; +  proc->status = proc->exit_signal ? 128 + proc->exit_signal : (int)exit_code;    CloseHandle(ptyproc->process_handle);    ptyproc->process_handle = NULL; | 
