win: support :terminal

This commit is contained in:
erw7
2017-03-28 18:07:58 +09:00
committed by Justin M. Keyes
parent a797856755
commit 4b1f21de75
12 changed files with 290 additions and 114 deletions

View File

@@ -6,8 +6,6 @@ local eval, feed_command, source = helpers.eval, helpers.feed_command, helpers.s
local eq, neq = helpers.eq, helpers.neq
local write_file = helpers.write_file
if helpers.pending_win32(pending) then return end
describe('terminal buffer', function()
local screen
@@ -72,6 +70,7 @@ describe('terminal buffer', function()
end)
it('cannot be modified directly', function()
if helpers.pending_win32(pending) then return end
feed('<c-\\><c-n>dd')
screen:expect([[
tty ready |
@@ -160,6 +159,7 @@ 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')
@@ -205,7 +205,7 @@ describe('terminal buffer', function()
end)
describe('No heap-buffer-overflow when using', function()
if helpers.pending_win32(pending) then return end
local testfilename = 'Xtestfile-functional-terminal-buffers_spec'
before_each(function()