Mercurial > vim
comparison src/testdir/test_terminal.vim @ 14017:e88e2a8de4c5 v8.1.0026
patch 8.1.0026: terminal test fails with very tall terminal
commit https://github.com/vim/vim/commit/33c5e9fa7af935c61a8aac461b9664c501003440
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 26 18:58:51 2018 +0200
patch 8.1.0026: terminal test fails with very tall terminal
Problem: Terminal test fails with very tall terminal. (Tom)
Solution: Fix the terminal window size in the test.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 26 May 2018 19:00:06 +0200 |
parents | 300aab3275c0 |
children | 7f5ddc6e715b |
comparison
equal
deleted
inserted
replaced
14016:ff0c5ccfa884 | 14017:e88e2a8de4c5 |
---|---|
268 exe buf . 'bwipe' | 268 exe buf . 'bwipe' |
269 call delete('Xtext') | 269 call delete('Xtext') |
270 endfunc | 270 endfunc |
271 | 271 |
272 func Test_terminal_scrollback() | 272 func Test_terminal_scrollback() |
273 let buf = Run_shell_in_terminal({}) | 273 let buf = Run_shell_in_terminal({'term_rows': 15}) |
274 set termwinscroll=100 | 274 set termwinscroll=100 |
275 call writefile(range(150), 'Xtext') | 275 call writefile(range(150), 'Xtext') |
276 if has('win32') | 276 if has('win32') |
277 call term_sendkeys(buf, "type Xtext\<CR>") | 277 call term_sendkeys(buf, "type Xtext\<CR>") |
278 else | 278 else |