[Tags] Use fnameescape to escape command line arguments (#512)

Port of 7727ad43af

Related: #504
This commit is contained in:
Jan Edmund Lazo 2017-11-20 10:19:13 -05:00 committed by Junegunn Choi
parent ba7a22888b
commit ad113a64fc

View file

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