aboutsummaryrefslogtreecommitdiff
path: root/autoload/prettier.vim
diff options
context:
space:
mode:
authorNelson Yeung <nelsyeung@icloud.com>2018-01-31 23:21:44 +0000
committerNelson Yeung <nelsyeung@icloud.com>2018-01-31 23:21:44 +0000
commit7de9c20a0ba3b2884ab35fdde68ef33589fd55d3 (patch)
treee74082b33770c7238b9d9b77031ed864a849f356 /autoload/prettier.vim
parent8e2dc1fd2d71c7b1b82b3728e27b7a3bf044a453 (diff)
downloadvim-prettier-7de9c20a0ba3b2884ab35fdde68ef33589fd55d3.tar.xz
Fix #108 spaces in executable path problem
Diffstat (limited to 'autoload/prettier.vim')
-rw-r--r--autoload/prettier.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim
index f1efc32..9d2f074 100644
--- a/autoload/prettier.vim
+++ b/autoload/prettier.vim
@@ -333,17 +333,17 @@ function! s:Get_Prettier_Exec() abort
let l:local_exec = s:Get_Prettier_Local_Exec()
if executable(l:local_exec)
- return l:local_exec
+ return fnameescape(l:local_exec)
endif
let l:global_exec = s:Get_Prettier_Global_Exec()
if executable(l:global_exec)
- return l:global_exec
+ return fnameescape(l:global_exec)
endif
let l:plugin_exec = s:Get_Prettier_Plugin_Exec()
if executable(l:plugin_exec)
- return l:plugin_exec
+ return fnameescape(l:plugin_exec)
endif
return -1