Mercurial > vim
diff src/vim9execute.c @ 24812:8fdf839af1f4 v8.2.2944
patch 8.2.2944: Vim9: no error when using job or channel as a string
Commit: https://github.com/vim/vim/commit/1328bde9d406aa1292e92673fa8a026889424e79
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 5 20:51:38 2021 +0200
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 https://github.com/vim/vim/issues/8312)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Jun 2021 21:00:03 +0200 |
parents | 30095f94d081 |
children | 1bed37e82c2e |
line wrap: on
line diff
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -4831,10 +4831,11 @@ list_instructions(char *pfx, isn_T *inst { 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