Skip to content

Commit 1c1fde6

Browse files
committed
Revert to the master state at the root of this branch.
This reverts commit 42f48ba.
1 parent 58a340c commit 1c1fde6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: plugin/fzf.vim

+1-5
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ endif
3737
if s:is_win
3838
let s:term_marker = '&::FZF'
3939

40-
" This is not bulletproof, but cmd.exe does not have SHELL env var.
41-
let s:is_gitbash = has_key(environ(), 'SHELL')
42-
4340
function! s:fzf_call(fn, ...)
4441
let shellslash = &shellslash
4542
try
@@ -487,8 +484,7 @@ try
487484
elseif type == 3
488485
let temps.input = s:fzf_tempname()
489486
call s:writefile(source, temps.input)
490-
let source_command = (s:is_win && !s:is_gitbash ? 'type ' : 'cat ')
491-
\.(s:is_gitbash ? substitute(temps.input, '\', '/', 'g') : fzf#shellescape(temps.input))
487+
let source_command = (s:is_win ? 'type ' : 'cat ').fzf#shellescape(temps.input)
492488
else
493489
throw 'Invalid source type'
494490
endif

0 commit comments

Comments
 (0)