summaryrefslogtreecommitdiffstats
path: root/src/proto/terminal.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-29 22:29:07 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-29 22:29:07 +0100
commit2a4857a1fcf1d188e5b985ac21bcfc532eddde94 (patch)
treeba6f315d6bf142f534541381ef5713e077080fee /src/proto/terminal.pro
parent50948e4ac24314d5a70404bbc592ffc28755ad9f (diff)
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.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/terminal.pro b/src/proto/terminal.pro
index a318fc87fa..e6914c0ba0 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);