comparison src/map.c @ 22468:990b47e15cd7 v8.2.1782

patch 8.2.1782: Vim9: cannot pass boolean to mapset() Commit: https://github.com/vim/vim/commit/74273e66914e46eb5814c13a1b888e45358859b6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 1 21:37:21 2020 +0200 patch 8.2.1782: Vim9: cannot pass boolean to mapset() Problem: Vim9: cannot pass boolean to mapset(). Solution: Use get_tv_bool(). (closes https://github.com/vim/vim/issues/7041)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Oct 2020 21:45:03 +0200
parents 9b09676b9e0e
children 6d50182e7e24
comparison
equal deleted inserted replaced
22467:e841e4b7ef2a 22468:990b47e15cd7
2305 2305
2306 which = tv_get_string_buf_chk(&argvars[0], buf); 2306 which = tv_get_string_buf_chk(&argvars[0], buf);
2307 if (which == NULL) 2307 if (which == NULL)
2308 return; 2308 return;
2309 mode = get_map_mode(&which, 0); 2309 mode = get_map_mode(&which, 0);
2310 is_abbr = (int)tv_get_number(&argvars[1]); 2310 is_abbr = (int)tv_get_bool(&argvars[1]);
2311 2311
2312 if (argvars[2].v_type != VAR_DICT) 2312 if (argvars[2].v_type != VAR_DICT)
2313 { 2313 {
2314 emsg(_(e_dictkey)); 2314 emsg(_(e_dictkey));
2315 return; 2315 return;