clipboard: reallow :put

This commit is contained in:
Björn Linse
2015-03-18 23:43:49 +01:00
parent 5600b80c1f
commit 34dba3d7cd
3 changed files with 21 additions and 10 deletions

View File

@@ -160,6 +160,22 @@ describe('clipboard usage', function()
linewise stuff]])
end)
it('supports :put', function()
insert("a line")
execute("let g:test_clip['*'] = ['some text']")
execute("let g:test_clip['+'] = ['more', 'text', '']")
execute(":put *")
expect([[
a line
some text]])
execute(":put +")
expect([[
a line
some text
more
text]])
end)
it('supports "+ and "* in registers', function()
local screen = Screen.new(60, 10)
screen:attach()