forked from aniani/vim
patch 7.4.1507
Problem: Crash when starting a job fails. Solution: Check for the channel to be NULL. (idea by Yasuhiro Matsumoto)
This commit is contained in:
@@ -15262,7 +15262,8 @@ f_job_start(typval_T *argvars UNUSED, typval_T *rettv)
|
||||
|
||||
#ifdef FEAT_CHANNEL
|
||||
/* If the channel is reading from a buffer, write lines now. */
|
||||
channel_write_in(job->jv_channel);
|
||||
if (job->jv_channel != NULL)
|
||||
channel_write_in(job->jv_channel);
|
||||
#endif
|
||||
|
||||
theend:
|
||||
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1507,
|
||||
/**/
|
||||
1506,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user