[Tags] Use fnameescape to escape command line arguments (#512)
Port of 7727ad43af
Related: #504
This commit is contained in:
parent
ba7a22888b
commit
ad113a64fc
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ function! s:chomp(str)
|
|||
endfunction
|
||||
|
||||
function! s:escape(path)
|
||||
return escape(a:path, ' $%#''"\')
|
||||
let path = fnameescape(a:path)
|
||||
return s:is_win ? escape(path, '$') : path
|
||||
endfunction
|
||||
|
||||
if v:version >= 704
|
||||
|
|
Loading…
Add table
Reference in a new issue