summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-01 21:37:21 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-01 21:37:21 +0200
commit74273e66914e46eb5814c13a1b888e45358859b6 (patch)
tree3f49aca8eaad979e9208ad9c69ea65fc8d215939 /src/map.c
parent4537bcc88956f86267c25edf8008e0dbde598652 (diff)
patch 8.2.1782: Vim9: cannot pass boolean to mapset()v8.2.1782
Problem: Vim9: cannot pass boolean to mapset(). Solution: Use get_tv_bool(). (closes #7041)
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.c b/src/map.c
index 6a994d4185..b46ba3781d 100644
--- a/src/map.c
+++ b/src/map.c
@@ -2307,7 +2307,7 @@ f_mapset(typval_T *argvars, typval_T *rettv UNUSED)
if (which == NULL)
return;
mode = get_map_mode(&which, 0);
- is_abbr = (int)tv_get_number(&argvars[1]);
+ is_abbr = (int)tv_get_bool(&argvars[1]);
if (argvars[2].v_type != VAR_DICT)
{