diff options
Diffstat (limited to 'test/functional/terminal/helpers.lua')
| -rw-r--r-- | test/functional/terminal/helpers.lua | 5 | 
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) | 
