Problem: Crash when using invalid buffer number.
Solution: Check for NULL buffer. (Yasuhiro Matsumoto, closes #1899)
++emsg_off;
buf = get_buf_tv(&argvars[0], FALSE);
--emsg_off;
- if (buf->b_term == NULL)
+ if (buf == NULL || buf->b_term == NULL)
return NULL;
return buf;
}
call assert_equal(1, len(termlist))
call assert_equal(buf, termlist[0])
+ " Nothing happens with invalid buffer number
+ call term_wait(1234)
+
call term_wait(buf)
call Check_123(buf)
call Check_123(buf)
exe buf . 'bwipe'
+ call delete('Xtext')
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 816,
/**/
815,
/**/