diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 24427bed..3beb5be3 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -149,13 +149,8 @@ function! s:tmux_enabled() endfunction function! s:escape(path) - let escaped_chars = '$%#''"' - - if has('unix') - let escaped_chars .= ' \' - endif - - return escape(a:path, escaped_chars) + let path = fnameescape(a:path) + return s:is_win ? escape(path, '$') : path endfunction " Upgrade legacy options