aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-10-26 13:53:14 +0200
committerJustin M. Keyes <justinkz@gmail.com>2016-10-26 13:53:14 +0200
commit26b90e95e7bfa8bec29d33642c80dd5c55ff88a7 (patch)
tree4318c082c2a5b49c05dc19d1bae70115d78b5eaa
parentd357a42389752b5270cf590b2f078f836de6c736 (diff)
downloadrneovim-26b90e95e7bfa8bec29d33642c80dd5c55ff88a7.tar.gz
rneovim-26b90e95e7bfa8bec29d33642c80dd5c55ff88a7.tar.bz2
rneovim-26b90e95e7bfa8bec29d33642c80dd5c55ff88a7.zip
test: Add missing test from vim-patch:7.4.2312
-rw-r--r--src/nvim/testdir/test_tabpage.vim16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_tabpage.vim b/src/nvim/testdir/test_tabpage.vim
index 7bdea0b186..0bf7d056de 100644
--- a/src/nvim/testdir/test_tabpage.vim
+++ b/src/nvim/testdir/test_tabpage.vim
@@ -218,7 +218,7 @@ function Test_tabpage_with_tab_modifier()
bw!
endfunction
-func Test_tabnext_on_buf_unload()
+func Test_tabnext_on_buf_unload1()
" This once caused a crash
new
tabedit
@@ -227,7 +227,19 @@ func Test_tabnext_on_buf_unload()
q
while tabpagenr('$') > 1
- quit
+ bwipe!
+ endwhile
+endfunc
+
+func Test_tabnext_on_buf_unload2()
+ " This once caused a crash
+ tabedit
+ autocmd BufUnload <buffer> tabnext
+ file x
+ edit y
+
+ while tabpagenr('$') > 1
+ bwipe!
endwhile
endfunc