commit | 74273e66914e46eb5814c13a1b888e45358859b6 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Oct 01 21:37:21 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Oct 01 21:37:21 2020 +0200 |
tree | 3f49aca8eaad979e9208ad9c69ea65fc8d215939 | |
parent | 4537bcc88956f86267c25edf8008e0dbde598652 [diff] [blame] |
patch 8.2.1782: Vim9: cannot pass boolean to mapset() Problem: Vim9: cannot pass boolean to mapset(). Solution: Use get_tv_bool(). (closes #7041)
diff --git a/src/map.c b/src/map.c index 6a994d4..b46ba37 100644 --- a/src/map.c +++ b/src/map.c
@@ -2307,7 +2307,7 @@ 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) {