diff options
| author | Jan Edmund Lazo <janlazo@users.noreply.github.com> | 2017-07-09 00:08:16 -0400 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-07-09 13:08:16 +0900 |
| commit | 68bd410159500f67e069a5d909f2d3062115cffc (patch) | |
| tree | 881b9fb02db52262cddfb676f62d415ac22ca19f /plugin/fzf.vim | |
| parent | b13fcfd831313a60c624dc48cb1b41a2d68bdc5c (diff) | |
| download | fzf-68bd410159500f67e069a5d909f2d3062115cffc.tar.gz | |
[vim] Don't pipe FZF_DEFAULT_COMMAND in Windows (#969)
Related #960, #552
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index bad74490..c0675123 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -365,10 +365,10 @@ try let dict.dir = fnamemodify(dict.dir, ':p') endif - if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND) - let temps.source = s:fzf_tempname().(s:is_win ? '.bat' : '') + if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND) && !s:is_win + let temps.source = s:fzf_tempname() call writefile(s:wrap_cmds(split($FZF_DEFAULT_COMMAND, "\n")), temps.source) - let dict.source = (empty($SHELL) ? &shell : $SHELL) . (s:is_win ? ' /c ' : ' ') . fzf#shellescape(temps.source) + let dict.source = (empty($SHELL) ? &shell : $SHELL).' '.fzf#shellescape(temps.source) endif if has_key(dict, 'source') |
