diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-24 22:14:58 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-24 22:14:58 +0200 |
commit | a8eee21e75324d199acb1663cb5009e03014a13a (patch) | |
tree | 7214b321e35fa081b9be19cd5373731bca478ca8 /src/testdir/test_arglist.vim | |
parent | 4119309d70c7fc32637e77f2e84c185ad1768892 (diff) | |
download | vim-git-a8eee21e75324d199acb1663cb5009e03014a13a.tar.gz |
patch 8.1.1924: using empty string for current buffer is unexpectedv8.1.1924
Problem: Using empty string for current buffer is unexpected.
Solution: Make the argument optional for bufname() and bufnr().
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r-- | src/testdir/test_arglist.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index a382a1a54..daed3d421 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -398,10 +398,10 @@ func Test_argedit() " make sure to use a new buffer number for x when it is loaded bw! x new - let a = bufnr('') + let a = bufnr() argedit x - call assert_equal(a, bufnr('')) - call assert_equal('x', bufname('')) + call assert_equal(a, bufnr()) + call assert_equal('x', bufname()) %argd bw! x endfunc |