diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-04-08 21:51:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-08 21:51:05 +0200 |
| commit | d48362fc8dcb88e4ded75a2d2726afff850c3cac (patch) | |
| tree | 411b1ec230806dc6c154b5c90e733fae1f6ebc6f /src/nvim/testdir/test_arglist.vim | |
| parent | 5a81561e7afa9c26d2190677750e341694e17c91 (diff) | |
| parent | 7381c93e2c0e7aa20d29cbc3c6c45de71e22a258 (diff) | |
| download | rneovim-d48362fc8dcb88e4ded75a2d2726afff850c3cac.tar.gz rneovim-d48362fc8dcb88e4ded75a2d2726afff850c3cac.tar.bz2 rneovim-d48362fc8dcb88e4ded75a2d2726afff850c3cac.zip | |
Merge pull request #9867 from mhinz/vim-8.1.1134
vim-patch:{8.0.1763,8.1.1134}
Diffstat (limited to 'src/nvim/testdir/test_arglist.vim')
| -rw-r--r-- | src/nvim/testdir/test_arglist.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_arglist.vim b/src/nvim/testdir/test_arglist.vim index ae975fe137..3a9ffbdbf3 100644 --- a/src/nvim/testdir/test_arglist.vim +++ b/src/nvim/testdir/test_arglist.vim @@ -329,6 +329,18 @@ func Test_argedit() %argd bwipe! C bwipe! D + + " :argedit reuses the current buffer if it is empty + %argd + " make sure to use a new buffer number for x when it is loaded + bw! x + new + let a = bufnr('') + argedit x + call assert_equal(a, bufnr('')) + call assert_equal('x', bufname('')) + %argd + bw! x endfunc " Test for the :argdelete command |