summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_command_count.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-31 23:06:22 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-31 23:06:22 +0200
commit32bbd00949c585ea1c9da13197279a175097eddd (patch)
tree62508b0ed6282faa5ceac0df0cbc7213893e6ce6 /src/testdir/test_command_count.vim
parent9049b686121367941bf534c041975938135c7e20 (diff)
patch 8.1.0341: :argadd in empty buffer changes the buffer namev8.1.0341
Problem: :argadd in empty buffer changes the buffer name. (Pavol Juhas) Solution: Don't re-use the current buffer when not going to edit the file. (closes #3397) Do re-use the current buffer for :next.
Diffstat (limited to 'src/testdir/test_command_count.vim')
-rw-r--r--src/testdir/test_command_count.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testdir/test_command_count.vim b/src/testdir/test_command_count.vim
index 7262789ab4..55b230373f 100644
--- a/src/testdir/test_command_count.vim
+++ b/src/testdir/test_command_count.vim
@@ -158,7 +158,9 @@ endfunc
func Test_command_count_4()
%argd
let bufnr = bufnr('$')
- arga aa bb cc dd ee ff
+ next aa bb cc dd ee ff
+ call assert_equal(bufnr, bufnr('%'))
+
3argu
let args = []
.,$-argdo call add(args, expand('%'))