0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.0784: job of terminal may be garbage collected

Problem:    Job of terminal may be garbage collected.
Solution:   Set copyID on job in terminal. (Ozaki Kiichi)
This commit is contained in:
Bram Moolenaar
2017-07-27 22:14:59 +02:00
parent 0e83f02d80
commit a2c45a17c1
4 changed files with 27 additions and 0 deletions

View File

@@ -5329,6 +5329,10 @@ garbage_collect(int testing)
abort = abort || set_ref_in_quickfix(copyID);
#endif
#ifdef FEAT_TERMINAL
abort = abort || set_ref_in_term(copyID);
#endif
if (!abort)
{
/*