To: vim_dev@googlegroups.com Subject: Patch 8.2.3899 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3899 (after 8.2.3897) Problem: Vim9: test for map() on string fails. Solution: Expect string return type. Files: src/evalfunc.c *** ../vim-8.2.3898/src/evalfunc.c 2021-12-25 21:43:24.296302789 +0000 --- src/evalfunc.c 2021-12-25 22:06:22.274154716 +0000 *************** *** 517,524 **** if (context->arg_types[0]->tt_type == VAR_LIST || context->arg_types[0]->tt_type == VAR_DICT) expected = context->arg_types[0]->tt_member; ! else if (context->arg_types[0]->tt_type == VAR_STRING ! || context->arg_types[0]->tt_type == VAR_BLOB) expected = &t_number; if (expected != NULL) { --- 517,525 ---- if (context->arg_types[0]->tt_type == VAR_LIST || context->arg_types[0]->tt_type == VAR_DICT) expected = context->arg_types[0]->tt_member; ! else if (context->arg_types[0]->tt_type == VAR_STRING) ! expected = &t_string; ! else if (context->arg_types[0]->tt_type == VAR_BLOB) expected = &t_number; if (expected != NULL) { *** ../vim-8.2.3898/src/version.c 2021-12-25 22:00:45.858688819 +0000 --- src/version.c 2021-12-25 22:07:24.446055800 +0000 *************** *** 751,752 **** --- 751,754 ---- { /* Add new patch number below this line */ + /**/ + 3899, /**/ -- In a world without walls and borders, who needs windows and gates? /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///