diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2016-02-19 17:31:23 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2016-02-21 02:38:55 +0100 |
commit | fe8b2fabe7e2ea93f8de5123beed5a6de23e2d9e (patch) | |
tree | c289913e82a75e052bed6e3ee0d105ece5a19068 /src/nvim/eval.c | |
parent | 44024f2c65d98bb0956e7d126a695247ecca023b (diff) | |
download | rneovim-fe8b2fabe7e2ea93f8de5123beed5a6de23e2d9e.tar.gz rneovim-fe8b2fabe7e2ea93f8de5123beed5a6de23e2d9e.tar.bz2 rneovim-fe8b2fabe7e2ea93f8de5123beed5a6de23e2d9e.zip |
Make TermClose event return the associated buffer
<abuf> from the TermClose event now returns the correct buffer number.
Prior to this change it would always return the buffer number of the current
buffer, which is obviously wrong in an async environment.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 837e19ab98..94683d22cb 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -22199,7 +22199,6 @@ static void on_process_exit(Process *proc, int status, void *d) char msg[22]; snprintf(msg, sizeof msg, "\r\n[Process exited %d]", proc->status); terminal_close(data->term, msg); - apply_autocmds(EVENT_TERMCLOSE, NULL, NULL, false, curbuf); } if (data->status_ptr) { |