mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
test: Add missing test from vim-patch:7.4.2312
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user