0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

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:
Bram Moolenaar
2018-05-10 18:23:29 +02:00
parent 56bc8e299c
commit 72cf47a279
2 changed files with 21 additions and 4 deletions

View File

@@ -507,4 +507,19 @@ func Test_visual_cleared_after_window_split()
bwipe! bwipe!
endfunc 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 " vim: shiftwidth=2 sts=2 expandtab

View File

@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1811,
/**/ /**/
1810, 1810,
/**/ /**/