mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-08-12 02:42:31 +08:00
[Tags] Use fnameescape to escape command line arguments (#512)
Port of https://github.com/junegunn/fzf/commit/7727ad43afb57cb325439590a9a6bad94601a720 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