mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
health#provider: fix logic with s:shellify
It should be quoted if there is any character that needs escaping, but not if there is a character that does not need escaping.
This commit is contained in:
parent
4744142fad
commit
87d3f265bc
@ -51,7 +51,7 @@ function! s:shellify(cmd) abort
|
||||
return a:cmd
|
||||
endif
|
||||
return join(map(copy(a:cmd),
|
||||
\'v:val =~# ''\m[\-.a-zA-Z_/]'' ? shellescape(v:val) : v:val'), ' ')
|
||||
\'v:val =~# ''\m[^\-.a-zA-Z_/]'' ? shellescape(v:val) : v:val'), ' ')
|
||||
endfunction
|
||||
|
||||
" Run a system command and timeout after 30 seconds.
|
||||
|
Loading…
Reference in New Issue
Block a user