aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload
diff options
context:
space:
mode:
authorckelsel <ckelsel@hotmail.com>2017-09-24 09:16:59 +0800
committerckelsel <ckelsel@hotmail.com>2017-09-24 09:16:59 +0800
commit90fc9039ddcadc61d4236bdd2d638d690081e04d (patch)
treeecf08d95a7c9459fa5a79202d85e6666c3f5ee88 /runtime/autoload
parent6258e33b114dc4386e608a5cf3a48742757441f7 (diff)
parent4bb0e95abbf0a61d383d5261019a2667706c9d39 (diff)
downloadrneovim-90fc9039ddcadc61d4236bdd2d638d690081e04d.tar.gz
rneovim-90fc9039ddcadc61d4236bdd2d638d690081e04d.tar.bz2
rneovim-90fc9039ddcadc61d4236bdd2d638d690081e04d.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'runtime/autoload')
-rw-r--r--runtime/autoload/remote/define.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/autoload/remote/define.vim b/runtime/autoload/remote/define.vim
index b04a5d2280..b5c976c823 100644
--- a/runtime/autoload/remote/define.vim
+++ b/runtime/autoload/remote/define.vim
@@ -89,7 +89,8 @@ endfunction
function! remote#define#AutocmdOnHost(host, method, sync, name, opts)
let group = s:GetNextAutocmdGroup()
- let forward = '"doau '.group.' '.a:name.' ".'.'expand("<amatch>")'
+ let forward = '"doau '.group.' '.a:name.' ".'
+ \ . 'fnameescape(expand("<amatch>"))'
let a:opts.group = group
let bootstrap_def = s:GetAutocmdPrefix(a:name, a:opts)
\ .' call remote#define#AutocmdBootstrap("'.a:host.'"'