aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2015-06-29 16:35:37 +0300
committerFlorian Walch <florian@fwalch.com>2015-07-06 15:09:32 +0300
commite949c2bd62f399a04ae23570203d61344bdd69e9 (patch)
tree44f14979121c7e41a2b5080803b55e783cc1322f /src/nvim/testdir
parent1b78ad1c4d1533fe3089b9744a5306616e562f3e (diff)
downloadrneovim-e949c2bd62f399a04ae23570203d61344bdd69e9.tar.gz
rneovim-e949c2bd62f399a04ae23570203d61344bdd69e9.tar.bz2
rneovim-e949c2bd62f399a04ae23570203d61344bdd69e9.zip
vim-patch:7.4.646 #2926
Problem: ":bufdo" may start at a deleted buffer. Solution: Find the first not deleted buffer. (Shane Harper) https://github.com/vim/vim/commit/v7-4-646
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_command_count.in1
-rw-r--r--src/nvim/testdir/test_command_count.ok2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_command_count.in b/src/nvim/testdir/test_command_count.in
index dd3c108360..170c810923 100644
--- a/src/nvim/testdir/test_command_count.in
+++ b/src/nvim/testdir/test_command_count.in
@@ -141,6 +141,7 @@ STARTTEST
:let buffers = ''
:.,$-bufdo let buffers .= ' '.bufnr('%')
:call add(g:lines, 'bufdo:' . buffers)
+:3bd
:let buffers = ''
:3,7bufdo let buffers .= ' '.bufnr('%')
:call add(g:lines, 'bufdo:' . buffers)
diff --git a/src/nvim/testdir/test_command_count.ok b/src/nvim/testdir/test_command_count.ok
index 8fdbc7748d..e74155ec1b 100644
--- a/src/nvim/testdir/test_command_count.ok
+++ b/src/nvim/testdir/test_command_count.ok
@@ -34,5 +34,5 @@ aaa: 0 bbb: 0 ccc: 0
argdo: c d e
windo: 2 3 4
bufdo: 2 3 4 5 6 7 8 9 10 15
-bufdo: 3 4 5 6 7
+bufdo: 4 5 6 7
tabdo: 2 3 4