diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-30 23:24:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-30 23:24:20 +0200 |
commit | 8b565c2c1522e0c41e3d18e1bb6e1bc4b3686842 (patch) | |
tree | a9868e4023d16c89444de0df1f5a7ade212a7546 /src/vim9script.c | |
parent | 02aaad91094939758e053588dd23ebda467eea29 (diff) | |
download | vim-git-8b565c2c1522e0c41e3d18e1bb6e1bc4b3686842.tar.gz |
patch 8.2.1551: Vim9: error for argument type does not mention the numberv8.2.1551
Problem: Vim9: error for argument type does not mention the number.
Solution: Pass the argument number to where the error is given.
Diffstat (limited to 'src/vim9script.c')
-rw-r--r-- | src/vim9script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9script.c b/src/vim9script.c index e86150a1e..ed1d6da48 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -580,7 +580,7 @@ check_script_var_type(typval_T *dest, typval_T *value, char_u *name) semsg(_(e_readonlyvar), name); return FAIL; } - return check_typval_type(sv->sv_type, value); + return check_typval_type(sv->sv_type, value, 0); } } iemsg("check_script_var_type(): not found"); |