mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00: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:
@@ -51,7 +51,7 @@ function! s:shellify(cmd) abort
|
|||||||
return a:cmd
|
return a:cmd
|
||||||
endif
|
endif
|
||||||
return join(map(copy(a:cmd),
|
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
|
endfunction
|
||||||
|
|
||||||
" Run a system command and timeout after 30 seconds.
|
" Run a system command and timeout after 30 seconds.
|
||||||
|
Reference in New Issue
Block a user