diff options
author | DDoSolitary <DDoSolitary@gmail.com> | 2020-09-01 15:27:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-01 00:27:38 -0700 |
commit | c14a9f6fcc0e74294e98913699c8a4a79f1f7321 (patch) | |
tree | edb77c13b2ae39935efb63d3fad7bcd953f6eb8f /test/functional | |
parent | a50cf35bdac7fe8bccd8ade3ce358daa8e00fc98 (diff) | |
download | rneovim-c14a9f6fcc0e74294e98913699c8a4a79f1f7321.tar.gz rneovim-c14a9f6fcc0e74294e98913699c8a4a79f1f7321.tar.bz2 rneovim-c14a9f6fcc0e74294e98913699c8a4a79f1f7321.zip |
g:clipboard: allow command given as a list #12775
fixes #12768
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/provider/clipboard_spec.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/provider/clipboard_spec.lua b/test/functional/provider/clipboard_spec.lua index da9dd09129..1431054494 100644 --- a/test/functional/provider/clipboard_spec.lua +++ b/test/functional/provider/clipboard_spec.lua @@ -153,6 +153,16 @@ describe('clipboard', function() eq('', eval('provider#clipboard#Error()')) end) + it('g:clipboard using lists', function() + source([[let g:clipboard = { + \ 'name': 'custom', + \ 'copy': { '+': ['any', 'command'], '*': ['some', 'other'] }, + \ 'paste': { '+': ['any', 'command'], '*': ['some', 'other'] }, + \}]]) + eq('custom', eval('provider#clipboard#Executable()')) + eq('', eval('provider#clipboard#Error()')) + end) + it('g:clipboard using VimL functions', function() -- Implements a fake clipboard provider. cache_enabled is meaningless here. source([[let g:clipboard = { |