mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0104: using channel or job with ":execute" has strange effects
Problem: Using channel or job with ":execute" has strange effects. Solution: Give an error message for Job and Channel.
This commit is contained in:
10
src/eval.c
10
src/eval.c
@@ -6055,7 +6055,15 @@ ex_execute(exarg_T *eap)
|
||||
char_u buf[NUMBUFLEN];
|
||||
|
||||
if (eap->cmdidx == CMD_execute)
|
||||
p = tv_get_string_buf(&rettv, buf);
|
||||
{
|
||||
if (rettv.v_type == VAR_CHANNEL || rettv.v_type == VAR_JOB)
|
||||
{
|
||||
emsg(_(e_inval_string));
|
||||
p = NULL;
|
||||
}
|
||||
else
|
||||
p = tv_get_string_buf(&rettv, buf);
|
||||
}
|
||||
else
|
||||
p = tv_stringify(&rettv, buf);
|
||||
if (p == NULL)
|
||||
|
Reference in New Issue
Block a user