mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +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!
|
bw!
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
func Test_tabnext_on_buf_unload()
|
func Test_tabnext_on_buf_unload1()
|
||||||
" This once caused a crash
|
" This once caused a crash
|
||||||
new
|
new
|
||||||
tabedit
|
tabedit
|
||||||
@@ -227,7 +227,19 @@ func Test_tabnext_on_buf_unload()
|
|||||||
q
|
q
|
||||||
|
|
||||||
while tabpagenr('$') > 1
|
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
|
endwhile
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user