diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-24 20:48:35 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-24 21:18:15 -0400 |
| commit | 66c06dad62638106fadad389f585dc11f482c6b1 (patch) | |
| tree | 13629346026378db371b1664ac5f006db23ce92f /src/nvim/testdir | |
| parent | 4fedef51b0bdb641432422b93dd5f3886f3e4283 (diff) | |
| download | rneovim-66c06dad62638106fadad389f585dc11f482c6b1.tar.gz rneovim-66c06dad62638106fadad389f585dc11f482c6b1.tar.bz2 rneovim-66c06dad62638106fadad389f585dc11f482c6b1.zip | |
vim-patch:8.1.1924: using empty string for current buffer is unexpected
Problem: Using empty string for current buffer is unexpected.
Solution: Make the argument optional for bufname() and bufnr().
https://github.com/vim/vim/commit/a8eee21e75324d199acb1663cb5009e03014a13a
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_arglist.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_arglist.vim b/src/nvim/testdir/test_arglist.vim index df72ff0a32..6e7583ade3 100644 --- a/src/nvim/testdir/test_arglist.vim +++ b/src/nvim/testdir/test_arglist.vim @@ -379,10 +379,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 |