Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 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 | 4097509ecc1e |
children | 454b78ca8247 |
comparison
equal
deleted
inserted
replaced
22467:e841e4b7ef2a | 22468:990b47e15cd7 |
---|---|
1719 iabbrev foo foobar | 1719 iabbrev foo foobar |
1720 mapcheck('foo', 'i', true)->assert_equal('foobar') | 1720 mapcheck('foo', 'i', true)->assert_equal('foobar') |
1721 iunabbrev foo | 1721 iunabbrev foo |
1722 enddef | 1722 enddef |
1723 | 1723 |
1724 def Test_maparg_mapset() | |
1725 nnoremap <F3> :echo "hit F3"<CR> | |
1726 var mapsave = maparg('<F3>', 'n', false, true) | |
1727 mapset('n', false, mapsave) | |
1728 | |
1729 nunmap <F3> | |
1730 enddef | |
1731 | |
1724 def Test_nr2char() | 1732 def Test_nr2char() |
1725 nr2char(97, true)->assert_equal('a') | 1733 nr2char(97, true)->assert_equal('a') |
1726 enddef | 1734 enddef |
1727 | 1735 |
1728 def Test_readdir() | 1736 def Test_readdir() |