Skip to content
Myr

[vim] Don't pipe FZF_DEFAULT_COMMAND in Windows (#969)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Related #960, #552

authored by Jan Edmund Lazo · committed by Junegunn Choi · parent b13fcfd · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:plugin/fzf.vim+3 added-3 removed
363 unmodified lines
364 if has('win32unix') && has_key(dict, 'dir')365 let dict.dir = fnamemodify(dict.dir, ':p')366 endif367368 if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND)369 let temps.source = s:fzf_tempname().(s:is_win ? '.bat' : '')368 if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND) && !s:is_win369 let temps.source = s:fzf_tempname()370 call writefile(s:wrap_cmds(split($FZF_DEFAULT_COMMAND, "\n")), temps.source)371 let dict.source = (empty($SHELL) ? &shell : $SHELL) . (s:is_win ? ' /c ' : ' ') . fzf#shellescape(temps.source)371 let dict.source = (empty($SHELL) ? &shell : $SHELL).' '.fzf#shellescape(temps.source)372 endif373374 if has_key(dict, 'source')375 let source = dict.source
409 unmodified lines