diff options
| author | Jason Cheatham <j.cheatham@gmail.com> | 2018-11-19 22:49:41 -0500 |
|---|---|---|
| committer | Jason Cheatham <j.cheatham@gmail.com> | 2018-11-19 22:50:31 -0500 |
| commit | 5779a87d901da3f44991feb3a6480b1156c37f3f (patch) | |
| tree | 914bd1507e328b1f247dabed10c8301c573bc6b8 /autoload | |
| parent | f2755ec6fe465fb6af051a254d826018dcde2a50 (diff) | |
| download | vim-prettier-5779a87d901da3f44991feb3a6480b1156c37f3f.tar.xz | |
Handle file paths with whitespace
Wrap the path used for `stdin-filepath` in quotes.
references #108
Diffstat (limited to 'autoload')
| -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 c703fba..dc42ee0 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -324,9 +324,9 @@ function! s:Get_Prettier_Exec_Args(config) abort \ get(a:config, 'configPrecedence', g:prettier#config#config_precedence) . \ ' --prose-wrap ' . \ get(a:config, 'proseWrap', g:prettier#config#prose_wrap) . - \ ' --stdin-filepath ' . + \ ' --stdin-filepath "' . \ simplify(expand('%:p')) . - \ ' --loglevel error '. + \ '" --loglevel error '. \ ' --stdin ' return l:cmd endfunction |
