patch 8.0.1811: no test for winrestcmd()
Problem: No test for winrestcmd(). Solution: Add a test. (Dominique Pelle, closes #2894)
This commit is contained in:
@ -507,4 +507,19 @@ func Test_visual_cleared_after_window_split()
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_winrestcmd()
|
||||
2split
|
||||
3vsplit
|
||||
let a = winrestcmd()
|
||||
call assert_equal(2, winheight(0))
|
||||
call assert_equal(3, winwidth(0))
|
||||
wincmd =
|
||||
call assert_notequal(2, winheight(0))
|
||||
call assert_notequal(3, winwidth(0))
|
||||
exe a
|
||||
call assert_equal(2, winheight(0))
|
||||
call assert_equal(3, winwidth(0))
|
||||
only
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
@ -761,6 +761,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1811,
|
||||
/**/
|
||||
1810,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user