Mercurial > vim
diff src/channel.c @ 11834:0cfe4a07c2ad v8.0.0797
patch 8.0.0797: finished job in terminal window is not handled
commit https://github.com/vim/vim/commit/d85f271bf8516dbd90be4d18f905f0abbfcd6db6
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 28 21:51:57 2017 +0200
patch 8.0.0797: finished job in terminal window is not handled
Problem: Finished job in terminal window is not handled.
Solution: Add the scrollback buffer. Use it to fill the buffer when the job
has ended.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 28 Jul 2017 22:00:04 +0200 |
parents | 74abb6c84984 |
children | d033653d3df8 |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -2921,6 +2921,10 @@ channel_close(channel_T *channel, int in } channel->ch_nb_close_cb = NULL; + +#ifdef FEAT_TERMINAL + term_channel_closed(channel); +#endif } /* @@ -4696,10 +4700,6 @@ job_cleanup(job_T *job) * not use "job" after this! */ job_free(job); } - -#ifdef FEAT_TERMINAL - term_job_ended(job); -#endif } /*