mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 20:54:28 +08:00
[Tags] Use fnameescape to escape command line arguments (#512)
Port of 7727ad43af
Related: #504
This commit is contained in:
committed by
Junegunn Choi
parent
ba7a22888b
commit
ad113a64fc
@@ -144,7 +144,8 @@ function! s:chomp(str)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:escape(path)
|
function! s:escape(path)
|
||||||
return escape(a:path, ' $%#''"\')
|
let path = fnameescape(a:path)
|
||||||
|
return s:is_win ? escape(path, '$') : path
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
if v:version >= 704
|
if v:version >= 704
|
||||||
|
|||||||
Reference in New Issue
Block a user