comparison 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
comparison
equal deleted inserted replaced
14056:e16c59ce44e2 14057:be8fb2fd51fc
104 set sessionoptions& 104 set sessionoptions&
105 endfunc 105 endfunc
106 106
107 func Test_mksession_winheight() 107 func Test_mksession_winheight()
108 new 108 new
109 set winheight=10 winminheight=2 109 set winheight=10
110 set winminheight=2
110 mksession! Xtest_mks.out 111 mksession! Xtest_mks.out
111 source Xtest_mks.out 112 source Xtest_mks.out
112 113
113 call delete('Xtest_mks.out') 114 call delete('Xtest_mks.out')
115 endfunc
116
117 func Test_mksession_large_winheight()
118 set winheight=999
119 mksession! Xtest_mks_winheight.out
120 set winheight&
121 source Xtest_mks_winheight.out
122 call delete('Xtest_mks_winheight.out')
114 endfunc 123 endfunc
115 124
116 func Test_mksession_arglist() 125 func Test_mksession_arglist()
117 argdel * 126 argdel *
118 next file1 file2 file3 file4 127 next file1 file2 file3 file4