diff options
author | Daniel Hahler <git@thequod.de> | 2018-04-30 16:48:32 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2018-04-30 16:48:32 +0200 |
commit | 87d3f265bc4bcedec146a4da7bb83244cea9fa6b (patch) | |
tree | 6196daf9c2bf9fce578cdb4e2943598d538c1c46 | |
parent | 4744142fad9209a1adaa190b9bf16ddcbcb67ca9 (diff) | |
download | rneovim-87d3f265bc4bcedec146a4da7bb83244cea9fa6b.tar.gz rneovim-87d3f265bc4bcedec146a4da7bb83244cea9fa6b.tar.bz2 rneovim-87d3f265bc4bcedec146a4da7bb83244cea9fa6b.zip |
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.
-rw-r--r-- | runtime/autoload/health/provider.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim index 4adab1aa76..adde784c2a 100644 --- a/runtime/autoload/health/provider.vim +++ b/runtime/autoload/health/provider.vim @@ -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. |