mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
escape amatch filename (#7292)
Fixes #7046 Fixes autozimu/LanguageClient-neovim#77
This commit is contained in:
parent
37609db6d0
commit
460aab3950
@ -89,7 +89,8 @@ endfunction
|
|||||||
|
|
||||||
function! remote#define#AutocmdOnHost(host, method, sync, name, opts)
|
function! remote#define#AutocmdOnHost(host, method, sync, name, opts)
|
||||||
let group = s:GetNextAutocmdGroup()
|
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 a:opts.group = group
|
||||||
let bootstrap_def = s:GetAutocmdPrefix(a:name, a:opts)
|
let bootstrap_def = s:GetAutocmdPrefix(a:name, a:opts)
|
||||||
\ .' call remote#define#AutocmdBootstrap("'.a:host.'"'
|
\ .' call remote#define#AutocmdBootstrap("'.a:host.'"'
|
||||||
|
Loading…
Reference in New Issue
Block a user