Problem: Type of term_sendkeys() is unknown.
Solution: Just return zero. (closes #5762)
* "term_sendkeys(buf, keys)" function
*/
void
-f_term_sendkeys(typval_T *argvars, typval_T *rettv)
+f_term_sendkeys(typval_T *argvars, typval_T *rettv UNUSED)
{
buf_T *buf = term_get_buf(argvars, "term_sendkeys()");
char_u *msg;
term_T *term;
- rettv->v_type = VAR_UNKNOWN;
if (buf == NULL)
return;
call term_wait(buf)
call term_sendkeys(buf, "exit\<CR>")
call term_wait(buf)
- call term_sendkeys(buf, ":q\<CR>")
+ let tsk_ret = term_sendkeys(buf, ":q\<CR>")
+
+ " check type of term_sendkeys() return value
+ echo type(tsk_ret)
+
call StopVimInTerminal(buf)
call delete('XTest_postponed')
call delete('Xtext')
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 373,
/**/
372,
/**/