diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-03 14:47:25 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-03 14:47:25 +0100 |
commit | 31a201a04aa95708af5d62070d2d397a201cc1a5 (patch) | |
tree | 9aeafa7c1a327d786357f79578162bfc83764030 /src/testdir/test_vim9_builtin.vim | |
parent | e68b02a1c40388bbb85e7b825bc538298963e1e1 (diff) |
patch 8.2.2284: Vim9: cannot set an option to a boolean valuev8.2.2284
Problem: Vim9: cannot set an option to a boolean value.
Solution: Check for VAR_BOOL. (closes #7603)
Diffstat (limited to 'src/testdir/test_vim9_builtin.vim')
-rw-r--r-- | src/testdir/test_vim9_builtin.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index c86b0df6c4..74031d4d09 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -652,11 +652,19 @@ def Test_setbufvar() &syntax->assert_equal('vim') setbufvar(bufnr('%'), '&ts', 16) &ts->assert_equal(16) + setbufvar(bufnr('%'), '&ai', true) + &ai->assert_equal(true) + setbufvar(bufnr('%'), '&ft', 'filetype') + &ft->assert_equal('filetype') + settabwinvar(1, 1, '&syntax', 'vam') &syntax->assert_equal('vam') settabwinvar(1, 1, '&ts', 15) &ts->assert_equal(15) setlocal ts=8 + settabwinvar(1, 1, '&list', true) + &list->assert_equal(true) + setlocal list& setbufvar('%', 'myvar', 123) getbufvar('%', 'myvar')->assert_equal(123) |