Skip to content

Commit d223222

Browse files
committed
[vim] s:shellesc() returns a:arg as is in Windows
1 parent 661d0c7 commit d223222

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugin/fzf.vim

+2-3
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ function! s:tmux_enabled()
8383
endfunction
8484

8585
function! s:shellesc(arg)
86-
let escaped = substitute(a:arg, '"', '\\"', 'g')
8786
if s:is_win
88-
return escaped
87+
return a:arg
8988
endif
90-
return '"'.escaped.'"'
89+
return '"'.substitute(a:arg, '"', '\\"', 'g').'"'
9190
endfunction
9291

9392
function! s:escape(path)

0 commit comments

Comments
 (0)