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/misc2.c | |
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/misc2.c')
-rw-r--r-- | src/misc2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c index df3f8e169..657e16491 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -6387,6 +6387,9 @@ parse_queued_messages(void) if (job_check_ended()) continue; # endif +# ifdef FEAT_TERMINAL + free_unused_terminals(); +# endif break; } |