Mercurial > vim
diff src/testdir/test_mksession.vim @ 14057:be8fb2fd51fc v8.1.0046
patch 8.1.0046: loading a session file fails if 'winheight' is big
commit https://github.com/vim/vim/commit/1c3c10492a291270fa89b3c8df11828792f927d3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 12 16:49:30 2018 +0200
patch 8.1.0046: loading a session file fails if 'winheight' is big
Problem: Loading a session file fails if 'winheight' is a big number.
Solution: Set 'minwinheight' to zero at first. Don't give an error when
setting 'minwinheight' while 'winheight' is a big number.
Fix using vertical splits. Fix setting 'minwinwidth'.
(closes #2970)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 12 Jun 2018 17:00:07 +0200 |
parents | fa198b71bab2 |
children | 7346b2ea80d8 |
line wrap: on
line diff
--- a/src/testdir/test_mksession.vim +++ b/src/testdir/test_mksession.vim @@ -106,13 +106,22 @@ endfunc func Test_mksession_winheight() new - set winheight=10 winminheight=2 + set winheight=10 + set winminheight=2 mksession! Xtest_mks.out source Xtest_mks.out call delete('Xtest_mks.out') endfunc +func Test_mksession_large_winheight() + set winheight=999 + mksession! Xtest_mks_winheight.out + set winheight& + source Xtest_mks_winheight.out + call delete('Xtest_mks_winheight.out') +endfunc + func Test_mksession_arglist() argdel * next file1 file2 file3 file4