Skip to content

Commit

Permalink
Revert to the master state at the root of this branch.
Browse files Browse the repository at this point in the history
This reverts commit 42f48ba.
  • Loading branch information
Adnn committed Oct 19, 2022
1 parent 58a340c commit 1c1fde6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ endif
if s:is_win
let s:term_marker = '&::FZF'

" This is not bulletproof, but cmd.exe does not have SHELL env var.
let s:is_gitbash = has_key(environ(), 'SHELL')

function! s:fzf_call(fn, ...)
let shellslash = &shellslash
try
Expand Down Expand Up @@ -487,8 +484,7 @@ try
elseif type == 3
let temps.input = s:fzf_tempname()
call s:writefile(source, temps.input)
let source_command = (s:is_win && !s:is_gitbash ? 'type ' : 'cat ')
\.(s:is_gitbash ? substitute(temps.input, '\', '/', 'g') : fzf#shellescape(temps.input))
let source_command = (s:is_win ? 'type ' : 'cat ').fzf#shellescape(temps.input)
else
throw 'Invalid source type'
endif
Expand Down

0 comments on commit 1c1fde6

Please sign in to comment.