mirror of
https://github.com/vim/vim.git
synced 2025-10-05 05:34:07 -04:00
patch 8.1.0845: having job_status() free the job causes problems
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)
This commit is contained in:
@@ -6386,6 +6386,9 @@ parse_queued_messages(void)
|
||||
// changes, e.g. stdin may have been closed.
|
||||
if (job_check_ended())
|
||||
continue;
|
||||
# endif
|
||||
# ifdef FEAT_TERMINAL
|
||||
free_unused_terminals();
|
||||
# endif
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user