diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-29 22:29:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-29 22:29:07 +0100 |
commit | 2a4857a1fcf1d188e5b985ac21bcfc532eddde94 (patch) | |
tree | ba6f315d6bf142f534541381ef5713e077080fee /src/proto/terminal.pro | |
parent | 50948e4ac24314d5a70404bbc592ffc28755ad9f (diff) | |
download | vim-git-2a4857a1fcf1d188e5b985ac21bcfc532eddde94.tar.gz |
patch 8.1.0845: having job_status() free the job causes problemsv8.1.0845
Problem: Having job_status() free the job causes problems.
Solution: Do not actually free the job or terminal yet, put it in a list and
free it a bit later. Do not use a terminal after checking the job
status. (closes #3873)
Diffstat (limited to 'src/proto/terminal.pro')
-rw-r--r-- | src/proto/terminal.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/terminal.pro b/src/proto/terminal.pro index a318fc87f..e6914c0ba 100644 --- a/src/proto/terminal.pro +++ b/src/proto/terminal.pro @@ -5,6 +5,7 @@ void ex_terminal(exarg_T *eap); int term_write_session(FILE *fd, win_T *wp); int term_should_restore(buf_T *buf); void free_terminal(buf_T *buf); +void free_unused_terminals(void); void write_to_term(buf_T *buffer, char_u *msg, channel_T *channel); int term_job_running(term_T *term); int term_none_open(term_T *term); |