forked from aniani/vim
patch 8.2.0275: some Ex code not covered by tests
Problem: Some Ex code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes #5659)
This commit is contained in:
@@ -4195,6 +4195,20 @@ func Test_splitview()
|
||||
call assert_equal(0, getloclist(0, {'winid' : 0}).winid)
|
||||
new | only
|
||||
|
||||
" Using :split or :vsplit from a quickfix window should behave like a :new
|
||||
" or a :vnew command
|
||||
copen
|
||||
split
|
||||
call assert_equal(3, winnr('$'))
|
||||
let l = getwininfo()
|
||||
call assert_equal([0, 0, 1], [l[0].quickfix, l[1].quickfix, l[2].quickfix])
|
||||
close
|
||||
copen
|
||||
vsplit
|
||||
let l = getwininfo()
|
||||
call assert_equal([0, 0, 1], [l[0].quickfix, l[1].quickfix, l[2].quickfix])
|
||||
new | only
|
||||
|
||||
call delete('Xtestfile1')
|
||||
call delete('Xtestfile2')
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user