[vim] Use fnameescape to escape command line arguments

Fix https://github.com/junegunn/fzf.vim/issues/404

Thanks to @janlazo.
pull/967/merge
Junegunn Choi 7 years ago
parent bbe10f4f77
commit 7727ad43af
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -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

Loading…
Cancel
Save