comparison src/terminal.c @ 14691:e2497d9c51c4 v8.1.0358

patch 8.1.0358: crash when using term_dumpwrite() after the job finished commit https://github.com/vim/vim/commit/a5c48c2698291e59244a705af1b7dbc60e03b09c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 9 19:56:07 2018 +0200 patch 8.1.0358: crash when using term_dumpwrite() after the job finished Problem: Crash when using term_dumpwrite() after the job finished. Solution: Check for a finished job and give an error message.
author Christian Brabandt <cb@256bit.org>
date Sun, 09 Sep 2018 20:00:07 +0200
parents cd3f0987c0bc
children c085c4cd9bba
comparison
equal deleted inserted replaced
14690:0dea97ff819e 14691:e2497d9c51c4
3869 if (check_restricted() || check_secure()) 3869 if (check_restricted() || check_secure())
3870 return; 3870 return;
3871 if (buf == NULL) 3871 if (buf == NULL)
3872 return; 3872 return;
3873 term = buf->b_term; 3873 term = buf->b_term;
3874 if (term->tl_vterm == NULL)
3875 {
3876 EMSG(_("E958: Job already finished"));
3877 return;
3878 }
3874 3879
3875 if (argvars[2].v_type != VAR_UNKNOWN) 3880 if (argvars[2].v_type != VAR_UNKNOWN)
3876 { 3881 {
3877 dict_T *d; 3882 dict_T *d;
3878 3883