diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2019-02-06 14:09:57 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-06 14:09:57 -0800 |
| commit | 0dbe7dc824a37e97c0751973ccf162eccaa5cdc2 (patch) | |
| tree | 376b63d84864355a24d8453a7d7ba677bd5d2fc6 /autoload/prettier.vim | |
| parent | 491922d557a94b6436ff7737f024c1f2006f6f3f (diff) | |
| parent | dc8266d19d7dbe6c9196dec814d8426df3010555 (diff) | |
| download | vim-prettier-0dbe7dc824a37e97c0751973ccf162eccaa5cdc2.tar.xz | |
Merge pull request #163 from jason0x43/handle-path-whitespace
Handle file paths with whitespace
Diffstat (limited to 'autoload/prettier.vim')
| -rw-r--r-- | autoload/prettier.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim index 0c369c1..52e9ea8 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -326,8 +326,8 @@ function! s:Get_Prettier_Exec_Args(config) abort \ get(a:config, 'proseWrap', g:prettier#config#prose_wrap) . \ ' --html-whitespace-sensitivity ' . \ get(a:config, 'htmlWhitespaceSensitivity', g:prettier#config#html_whitespace_sensitivity) . - \ ' --stdin-filepath ' . - \ simplify(expand('%:p')) . + \ ' --stdin-filepath "' . + \ simplify(expand('%:p')) . '"' . \ ' --loglevel error '. \ ' --stdin ' return l:cmd |
