diff --git a/src/terminal.c b/src/terminal.c index b68081f314..d02e7f12c4 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -491,7 +491,11 @@ term_convert_key(int c, char *buf) static int term_job_running(term_T *term) { - return term->tl_job != NULL && term->tl_job->jv_status == JOB_STARTED; + /* Also consider the job finished when the channel is closed, to avoid a + * race condition when updating the title. */ + return term->tl_job != NULL + && term->tl_job->jv_status == JOB_STARTED + && channel_is_open(term->tl_job->jv_channel); } /* diff --git a/src/version.c b/src/version.c index a44e5505b9..4c2a48ad37 100644 --- a/src/version.c +++ b/src/version.c @@ -769,6 +769,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 801, /**/ 800, /**/