From 7de9c20a0ba3b2884ab35fdde68ef33589fd55d3 Mon Sep 17 00:00:00 2001 From: Nelson Yeung Date: Wed, 31 Jan 2018 23:21:44 +0000 Subject: Fix #108 spaces in executable path problem --- autoload/prettier.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'autoload') 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 -- cgit v1.3