Skip to content
Snippets Groups Projects
Unverified Commit 7727ad43 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[vim] Use fnameescape to escape command line arguments

parent bbe10f4f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment