mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2944: Vim9: no error when using job or channel as a string
Problem: Vim9: no error when using job or channel as a string. Solution: Be more strict about conversion to string. (closes #8312)
This commit is contained in:
@@ -4831,10 +4831,11 @@ list_instructions(char *pfx, isn_T *instr, int instr_count, ufunc_T *ufunc)
|
||||
{
|
||||
typval_T tv;
|
||||
char_u *name;
|
||||
char_u buf[NUMBUFLEN];
|
||||
|
||||
tv.v_type = VAR_JOB;
|
||||
tv.vval.v_job = iptr->isn_arg.job;
|
||||
name = tv_get_string(&tv);
|
||||
name = job_to_string_buf(&tv, buf);
|
||||
smsg("%s%4d PUSHJOB \"%s\"", pfx, current, name);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user