diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-11 08:28:19 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-18 21:40:27 -0400 |
commit | 47d679c0c24765b7bd6808dc720f5f59f47cc0b8 (patch) | |
tree | ea5f4f74a4d0d21de13095e34ba74e8c3c557da9 /test/functional/terminal/buffer_spec.lua | |
parent | cb11de18a20230fc20adfcd7922081d68f8ae9eb (diff) | |
download | rneovim-47d679c0c24765b7bd6808dc720f5f59f47cc0b8.tar.gz rneovim-47d679c0c24765b7bd6808dc720f5f59f47cc0b8.tar.bz2 rneovim-47d679c0c24765b7bd6808dc720f5f59f47cc0b8.zip |
tests: win: enable buffer focus test
Diffstat (limited to 'test/functional/terminal/buffer_spec.lua')
-rw-r--r-- | test/functional/terminal/buffer_spec.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua index e598c325a8..1763574bf9 100644 --- a/test/functional/terminal/buffer_spec.lua +++ b/test/functional/terminal/buffer_spec.lua @@ -158,14 +158,15 @@ describe(':terminal buffer', function() end) it('handles loss of focus gracefully', function() - if helpers.pending_win32(pending) then return end -- Change the statusline to avoid printing the file name, which varies. nvim('set_option', 'statusline', '==========') feed_command('set laststatus=0') -- Save the buffer number of the terminal for later testing. local tbuf = eval('bufnr("%")') - + local exitcmd = helpers.iswin() + and "['cmd', '/c', 'exit']" + or "['sh', '-c', 'exit']" source([[ function! SplitWindow(id, data, event) new @@ -173,7 +174,7 @@ describe(':terminal buffer', function() endfunction startinsert - call jobstart(['sh', '-c', 'exit'], {'on_exit': function("SplitWindow")}) + call jobstart(]]..exitcmd..[[, {'on_exit': function("SplitWindow")}) call feedkeys("\<C-\>", 't') " vim will expect <C-n>, but be exited out of " the terminal before it can be entered. ]]) |