mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.0.0853: crash when running terminal with unknown command
Problem: Crash when running terminal with unknown command. Solution: Check "term" not to be NULL. (Yasuhiro Matsumoto, closes #1932)
This commit is contained in:
@@ -629,7 +629,8 @@ term_job_running(term_T *term)
|
|||||||
{
|
{
|
||||||
/* Also consider the job finished when the channel is closed, to avoid a
|
/* Also consider the job finished when the channel is closed, to avoid a
|
||||||
* race condition when updating the title. */
|
* race condition when updating the title. */
|
||||||
return term->tl_job != NULL
|
return term != NULL
|
||||||
|
&& term->tl_job != NULL
|
||||||
&& term->tl_job->jv_status == JOB_STARTED
|
&& term->tl_job->jv_status == JOB_STARTED
|
||||||
&& channel_is_open(term->tl_job->jv_channel);
|
&& channel_is_open(term->tl_job->jv_channel);
|
||||||
}
|
}
|
||||||
|
@@ -769,6 +769,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
853,
|
||||||
/**/
|
/**/
|
||||||
852,
|
852,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user