Skip to content

Commit b4a6721

Browse files
committed
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)
1 parent 1b66c00 commit b4a6721

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/terminal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,8 @@ term_job_running(term_T *term)
629629
{
630630
/* Also consider the job finished when the channel is closed, to avoid a
631631
* race condition when updating the title. */
632-
return term->tl_job != NULL
632+
return term != NULL
633+
&& term->tl_job != NULL
633634
&& term->tl_job->jv_status == JOB_STARTED
634635
&& channel_is_open(term->tl_job->jv_channel);
635636
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
853,
772774
/**/
773775
852,
774776
/**/

0 commit comments

Comments
 (0)