Skip to content
Myr

[vim] Fix FZF_DEFAULT_COMMAND on Windows

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

Close #847. Patch submitted by @wontoncc.

authored by Junegunn Choi · committed by Junegunn Choi · parent 3d74d27 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:plugin/fzf.vim+2 added-2 removed
289 unmodified lines
290 throw v:exception291 endtry292293 if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND)294 let temps.source = tempname()294 let temps.source = tempname().(s:is_win ? '.bat' : '')295 call writefile(split($FZF_DEFAULT_COMMAND, "\n"), temps.source)296 let dict.source = (empty($SHELL) ? &shell : $SHELL) . ' ' . s:shellesc(temps.source)296 let dict.source = (empty($SHELL) ? &shell : $SHELL) . (s:is_win ? ' /c ' : ' ') . s:shellesc(temps.source)297 endif298299 if has_key(dict, 'source')300 let source = dict.source
380 unmodified lines