diff options
author | Gregory Anders <greg@gpanders.com> | 2021-08-20 11:45:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 10:45:28 -0700 |
commit | 50b30de2007961718cc11811a30f6b0f35c3c793 (patch) | |
tree | 5bef15d7394ec3ccef0ced4c7e93d68bb11fa015 /src/nvim/buffer.c | |
parent | 599af74514d0d7083c0565005f255e59ecd7e2ad (diff) | |
download | rneovim-50b30de2007961718cc11811a30f6b0f35c3c793.tar.gz rneovim-50b30de2007961718cc11811a30f6b0f35c3c793.tar.bz2 rneovim-50b30de2007961718cc11811a30f6b0f35c3c793.zip |
feat(terminal): TermClose: set exit code in v:event.status #15406
Closes #4713
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 29d4fc786a..a7fc34f2d6 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -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. |