diff options
author | kuuote <znmxodq1@gmail.com> | 2020-05-31 20:21:58 +0900 |
---|---|---|
committer | kuuote <znmxodq1@gmail.com> | 2020-05-31 20:21:58 +0900 |
commit | 7124c0e5acde38957af7621afd1d92fb2b6d1d58 (patch) | |
tree | 4994f622377d9e601359b0fd7d88f15425aa4bfc /test/functional/provider/define_spec.lua | |
parent | 4b87248285e7d954e496f84a7ece58b4f1a830ca (diff) | |
download | rneovim-7124c0e5acde38957af7621afd1d92fb2b6d1d58.tar.gz rneovim-7124c0e5acde38957af7621afd1d92fb2b6d1d58.tar.bz2 rneovim-7124c0e5acde38957af7621afd1d92fb2b6d1d58.zip |
runtime: fix remote plugin command fails at some case
fixes #12410
Diffstat (limited to 'test/functional/provider/define_spec.lua')
-rw-r--r-- | test/functional/provider/define_spec.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/provider/define_spec.lua b/test/functional/provider/define_spec.lua index 51a8831274..c04dcd47b9 100644 --- a/test/functional/provider/define_spec.lua +++ b/test/functional/provider/define_spec.lua @@ -89,6 +89,21 @@ local function command_specs_for(fn, sync, first_arg_factory, init) runx(sync, handler, on_setup) end) + it('with nargs/double-quote', function() + call(fn, args..', {"nargs": "*"}') + local function on_setup() + command('RpcCommand "arg"') + end + + local function handler(method, arguments) + eq('test-handler', method) + eq({'"arg"'}, arguments[1]) + return '' + end + + runx(sync, handler, on_setup) + end) + it('with range', function() call(fn,args..', {"range": ""}') local function on_setup() |