feat(terminal): TermClose: set exit code in v:event.status #15406

Closes #4713
This commit is contained in:
Gregory Anders
2021-08-20 11:45:28 -06:00
committed by GitHub
parent 599af74514
commit 50b30de200
8 changed files with 43 additions and 13 deletions

View File

@@ -532,7 +532,7 @@ bool close_buffer(win_T *win, buf_T *buf, int action, bool abort_if_last)
}
if (buf->terminal) {
terminal_close(buf->terminal, NULL);
terminal_close(buf->terminal, -1);
}
// Always remove the buffer when there is no file name.