diff options
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c index abdb50b30..b06feffc2 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -629,7 +629,8 @@ term_job_running(term_T *term) { /* Also consider the job finished when the channel is closed, to avoid a * 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 && channel_is_open(term->tl_job->jv_channel); } |