diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-04 18:35:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-04 18:35:26 +0200 |
commit | fe136c9a85412f4bdb5de70ef8416af5fa382b28 (patch) | |
tree | ed8e13e406f5623d3f9d0665dae559f979dad06f /src/testdir/test_vim9_func.vim | |
parent | b936b79424d435b83cdebed5507a9d3800e66e6c (diff) | |
download | vim-git-fe136c9a85412f4bdb5de70ef8416af5fa382b28.tar.gz |
patch 8.2.1590: Vim9: bufnr() doesn't take "true" argumentv8.2.1590
Problem: Vim9: bufnr() doesn't take "true" argument.
Solution: use tv_get_bool_chk(). (closes #6863)
Diffstat (limited to 'src/testdir/test_vim9_func.vim')
-rw-r--r-- | src/testdir/test_vim9_func.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_func.vim b/src/testdir/test_vim9_func.vim index f79c2e0bd..ad3268af5 100644 --- a/src/testdir/test_vim9_func.vim +++ b/src/testdir/test_vim9_func.vim @@ -1327,6 +1327,10 @@ enddef def Test_bufnr() let buf = bufnr() assert_equal(buf, bufnr('%')) + + buf = bufnr('Xdummy', true) + assert_notequal(-1, buf) + exe 'bwipe! ' .. buf enddef def Test_col() |