diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-02 22:25:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-02 22:25:35 +0200 |
commit | 04d594b9c14299ed50da0774fb8d3a10fbc4076f (patch) | |
tree | 3aba97a163925267ee60a6832bf74f632c934f8a /src/evalfunc.c | |
parent | 6c553f9c04a698ac2e19584f8ea8e2cb7cd98c80 (diff) | |
download | vim-git-04d594b9c14299ed50da0774fb8d3a10fbc4076f.tar.gz |
patch 8.2.1577: Vim9: hasmapto()/mapcheck()/maparg() do nottake "true" argv8.2.1577
Problem: Vim9: hasmapto(), mapcheck() and maparg() do not take "true" as
argument.
Solution: Use tv_get_bool(). (closes #6822, closes #6824)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 4f0bb5cea..91fbc675c 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4808,7 +4808,7 @@ f_hasmapto(typval_T *argvars, typval_T *rettv) { mode = tv_get_string_buf(&argvars[1], buf); if (argvars[2].v_type != VAR_UNKNOWN) - abbr = (int)tv_get_number(&argvars[2]); + abbr = (int)tv_get_bool(&argvars[2]); } if (map_to_exists(name, mode, abbr)) |