comparison src/testdir/test_terminal.vim @ 11975:5cc005cf312f v8.0.0868

patch 8.0.0868: cannot specify the terminal size on the command line commit https://github.com/vim/vim/commit/cfcc022c54e66b317ddcc8a807977230b056a542 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 5 17:13:48 2017 +0200 patch 8.0.0868: cannot specify the terminal size on the command line Problem: Cannot specify the terminal size on the command line. Solution: Use the address range for the terminal size. (Yasuhiro Matsumoto, closes #1941)
author Christian Brabandt <cb@256bit.org>
date Sat, 05 Aug 2017 17:15:04 +0200
parents aec3df2af27c
children 0d9bfdb3f6f7
comparison
equal deleted inserted replaced
11974:04f021e507e2 11975:5cc005cf312f
169 call Check_123(buf) 169 call Check_123(buf)
170 170
171 exe buf . 'bwipe' 171 exe buf . 'bwipe'
172 call delete('Xtext') 172 call delete('Xtext')
173 endfunc 173 endfunc
174
175 func Test_terminal_size()
176 let cmd = Get_cat_cmd()
177
178 exe '5terminal ' . cmd
179 let size = term_getsize('')
180 bwipe!
181 call assert_equal(5, size[0])
182
183 vsplit
184 exe '5,33terminal ' . cmd
185 let size = term_getsize('')
186 bwipe!
187 call assert_equal([5, 33], size)
188
189 exe 'vertical 20terminal ' . cmd
190 let size = term_getsize('')
191 bwipe!
192 call assert_equal(20, size[1])
193
194 split
195 exe 'vertical 6,20terminal ' . cmd
196 let size = term_getsize('')
197 bwipe!
198 call assert_equal([6, 20], size)
199 endfunc