aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-02-21 15:16:48 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-02-26 11:57:52 +0100
commite7bbd35c812d338918d1c23692c70b403205fb30 (patch)
tree21dcf24c9e1c759fd9cf984c76ec40a51b94dbfc /test/functional/terminal/helpers.lua
parent300eca3d301e407adadc017e71502d20a4b207e8 (diff)
downloadrneovim-e7bbd35c812d338918d1c23692c70b403205fb30.tar.gz
rneovim-e7bbd35c812d338918d1c23692c70b403205fb30.tar.bz2
rneovim-e7bbd35c812d338918d1c23692c70b403205fb30.zip
terminal: 'scrollback'
Closes #2637
Diffstat (limited to 'test/functional/terminal/helpers.lua')
-rw-r--r--test/functional/terminal/helpers.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/terminal/helpers.lua b/test/functional/terminal/helpers.lua
index ae5e6d4b1f..8c31a300dd 100644
--- a/test/functional/terminal/helpers.lua
+++ b/test/functional/terminal/helpers.lua
@@ -37,7 +37,6 @@ local default_command = '["'..nvim_dir..'/tty-test'..'"]'
local function screen_setup(extra_height, command)
nvim('command', 'highlight TermCursor cterm=reverse')
nvim('command', 'highlight TermCursorNC ctermbg=11')
- nvim('set_var', 'terminal_scrollback_buffer_size', 10)
if not extra_height then extra_height = 0 end
if not command then command = default_command end
local screen = Screen.new(50, 7 + extra_height)
@@ -58,7 +57,9 @@ local function screen_setup(extra_height, command)
-- tty-test puts the terminal into raw mode and echoes all input. tests are
-- done by feeding it with terminfo codes to control the display and
-- verifying output with screen:expect.
- execute('enew | call termopen('..command..') | startinsert')
+ execute('enew | call termopen('..command..')')
+ execute('setlocal scrollback=10')
+ execute('startinsert')
if command == default_command then
-- wait for "tty ready" to be printed before each test or the terminal may
-- still be in canonical mode(will echo characters for example)