aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-04-18 23:23:13 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-04-18 23:23:13 -0400
commit376ba4e734058497ddccb11b83452f3115409d24 (patch)
treedb069897463bddf8fa307a20f9b1d24ba35cab92
parentba97f735601792af9264550493d184bab62d0dca (diff)
parent2ebc58d25a42ff694c0295ef52daa7a3c931ea71 (diff)
downloadrneovim-376ba4e734058497ddccb11b83452f3115409d24.tar.gz
rneovim-376ba4e734058497ddccb11b83452f3115409d24.tar.bz2
rneovim-376ba4e734058497ddccb11b83452f3115409d24.zip
Merge pull request #4599 from Shougo/fixerror
Fix loading remote plugin error
-rw-r--r--runtime/autoload/remote/define.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/autoload/remote/define.vim b/runtime/autoload/remote/define.vim
index dd2482998d..ca1def0941 100644
--- a/runtime/autoload/remote/define.vim
+++ b/runtime/autoload/remote/define.vim
@@ -30,7 +30,7 @@ function! remote#define#CommandOnHost(host, method, sync, name, opts)
exe s:GetCommandPrefix(a:name, a:opts)
\ .' call remote#define#CommandBootstrap("'.a:host.'"'
\ . ', "'.a:method.'"'
- \ . ', "'.a:sync.'"'
+ \ . ', '.string(a:sync)
\ . ', "'.a:name.'"'
\ . ', '.string(a:opts).''
\ . ', "'.join(forward_args, '').'"'
@@ -94,7 +94,7 @@ function! remote#define#AutocmdOnHost(host, method, sync, name, opts)
let bootstrap_def = s:GetAutocmdPrefix(a:name, a:opts)
\ .' call remote#define#AutocmdBootstrap("'.a:host.'"'
\ . ', "'.a:method.'"'
- \ . ', "'.a:sync.'"'
+ \ . ', '.string(a:sync)
\ . ', "'.a:name.'"'
\ . ', '.string(a:opts).''
\ . ', "'.escape(forward, '"').'"'
@@ -133,7 +133,7 @@ function! remote#define#FunctionOnHost(host, method, sync, name, opts)
exe 'autocmd! '.group.' FuncUndefined '.a:name
\ .' call remote#define#FunctionBootstrap("'.a:host.'"'
\ . ', "'.a:method.'"'
- \ . ', "'.a:sync.'"'
+ \ . ', '.string(a:sync)
\ . ', "'.a:name.'"'
\ . ', '.string(a:opts)
\ . ', "'.group.'"'