mirror of
https://github.com/neovim/neovim.git
synced 2025-11-28 13:10:44 +00:00
committed by
Justin M. Keyes
parent
bdcb2a38b3
commit
6a68a922b8
@@ -89,9 +89,12 @@ describe('the unnamed register', function()
|
||||
end)
|
||||
|
||||
describe('clipboard usage', function()
|
||||
local function reset(...)
|
||||
clear('--cmd', 'let &rtp = "test/functional/fixtures,".&rtp', ...)
|
||||
end
|
||||
|
||||
before_each(function()
|
||||
clear()
|
||||
execute('let &rtp = "test/functional/fixtures,".&rtp')
|
||||
reset()
|
||||
execute('call getreg("*")') -- force load of provider
|
||||
end)
|
||||
|
||||
@@ -363,6 +366,13 @@ describe('clipboard usage', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
it('sets v:register after startup', function()
|
||||
reset()
|
||||
eq('"', eval('v:register'))
|
||||
reset('--cmd', 'set clipboard=unnamed')
|
||||
eq('*', eval('v:register'))
|
||||
end)
|
||||
|
||||
it('supports :put', function()
|
||||
insert("a line")
|
||||
execute("let g:test_clip['*'] = ['some text']")
|
||||
|
||||
Reference in New Issue
Block a user