diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-02 21:02:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-02 21:02:35 +0200 |
commit | a5d3841177e0b3545381c875d0b4b442f38784bd (patch) | |
tree | 548f839d40bb33e4f02b342610439754c82d448d /src/evalfunc.c | |
parent | 4da7a259f6b28a4f855a6fa7d0ede5e038600154 (diff) |
patch 8.2.1569: Vim9: fixes not tested; failure in getchangelist()v8.2.1569
Problem: Vim9: fixes for functions not tested; failure in getchangelist().
Solution: Add tests. (closes #6813, closes #6815, closes #6817)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index fff7a89a9a..771e393db6 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -3081,12 +3081,7 @@ f_getchangelist(typval_T *argvars, typval_T *rettv) if (argvars[0].v_type == VAR_UNKNOWN) buf = curbuf; else - { - (void)tv_get_number(&argvars[0]); // issue errmsg if type error - ++emsg_off; - buf = tv_get_buf(&argvars[0], FALSE); - --emsg_off; - } + buf = tv_get_buf_from_arg(&argvars[0]); if (buf == NULL) return; |