diff options
author | Andy Russell <arussell123@gmail.com> | 2017-09-19 02:13:44 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-09-19 08:13:44 +0200 |
commit | 460aab39509015543aeafcaa4bcc730564793416 (patch) | |
tree | b500e72955d4a2fc69441a30a9df3e1930592101 | |
parent | 37609db6d0b4bd46092243696d4e3da512ed6d7d (diff) | |
download | rneovim-460aab39509015543aeafcaa4bcc730564793416.tar.gz rneovim-460aab39509015543aeafcaa4bcc730564793416.tar.bz2 rneovim-460aab39509015543aeafcaa4bcc730564793416.zip |
escape amatch filename (#7292)
Fixes #7046
Fixes autozimu/LanguageClient-neovim#77
-rw-r--r-- | runtime/autoload/remote/define.vim | 3 |
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.'"' |