diff --git a/plugin/fzf.vim b/plugin/fzf.vim index d2da893..3f218b8 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -76,7 +76,7 @@ function! s:shellesc(arg) endfunction function! s:escape(path) - return substitute(a:path, ' ', '\\ ', 'g') + return escape(a:path, ' %#\') endfunction " Upgrade legacy options