diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2015-04-08 21:46:12 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2015-04-11 11:11:52 +0200 |
commit | 941b02af4cca9fb98c6ee4a8dd4aa800bd337deb (patch) | |
tree | d3a1a5a907bf3c8c1ef3501e3a01afdbee375f1b /test | |
parent | e584fe00570a522154ce856581006644e766f88f (diff) | |
download | rneovim-941b02af4cca9fb98c6ee4a8dd4aa800bd337deb.tar.gz rneovim-941b02af4cca9fb98c6ee4a8dd4aa800bd337deb.tar.bz2 rneovim-941b02af4cca9fb98c6ee4a8dd4aa800bd337deb.zip |
clipboard: adjust v:register when clipboard=unnamed
Helped-By: Nicolas Hillegeer <nicolas@hillegeer.com>
Helped-By: Michael Reed <m.reed@mykolab.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/clipboard/clipboard_provider_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/clipboard/clipboard_provider_spec.lua b/test/functional/clipboard/clipboard_provider_spec.lua index e7ca183a0e..10a346b8ba 100644 --- a/test/functional/clipboard/clipboard_provider_spec.lua +++ b/test/functional/clipboard/clipboard_provider_spec.lua @@ -72,6 +72,7 @@ end describe('the unnamed register', function() before_each(clear) it('works without provider', function() + eq('"', eval('v:register')) basic_register_test() end) end) @@ -227,6 +228,13 @@ describe('clipboard usage', function() a line]]) end) + it('supports v:register and getreg() without parameters', function() + eq('*', eval('v:register')) + execute("let g:test_clip['*'] = [['some block',''], 'b']") + eq('some block', eval('getreg()')) + eq('\02210', eval('getregtype()')) + end) + end) it('supports :put', function() |