diff options
| author | Qiming zhao <chemzqm@gmail.com> | 2017-11-02 12:04:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-02 12:04:31 +0800 |
| commit | 8705a95d9babfc3acafeb28babfff021fce5782d (patch) | |
| tree | 0f2607a525f599a69a8bad888ae7cb2b0f3aea72 | |
| parent | e099265f89ccaf7c5c29c6fe6746e810585fd3d2 (diff) | |
| download | vim-prettier-8705a95d9babfc3acafeb28babfff021fce5782d.tar.xz | |
Add shellescape for file path
| -rw-r--r-- | autoload/prettier.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim index 783e527..35935db 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -256,7 +256,7 @@ function! s:Get_Prettier_Exec_Args(config) abort \ ' --config-precedence ' . \ get(a:config, 'configPrecedence', g:prettier#config#config_precedence) . \ ' --stdin-filepath ' . - \ simplify(expand("%:p")) . + \ shellescape(simplify(expand("%:p"))) . \ ' --stdin ' return l:cmd endfunction |
