aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorDDoSolitary <DDoSolitary@gmail.com>2020-09-01 15:27:38 +0800
committerGitHub <noreply@github.com>2020-09-01 00:27:38 -0700
commitc14a9f6fcc0e74294e98913699c8a4a79f1f7321 (patch)
treeedb77c13b2ae39935efb63d3fad7bcd953f6eb8f /test/functional
parenta50cf35bdac7fe8bccd8ade3ce358daa8e00fc98 (diff)
downloadrneovim-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.lua10
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 = {