From c2db67c1c086f0bbebf4802abb3fb9335ee46662 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 18 Feb 2017 21:58:03 +0900 Subject: [PATCH] [vim] Prepend @echo off to $FZF_DEFAULT_COMMAND on Windows (#847) --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 81c54bc..ba2414e 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -292,7 +292,7 @@ try if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND) let temps.source = tempname().(s:is_win ? '.bat' : '') - call writefile(split($FZF_DEFAULT_COMMAND, "\n"), temps.source) + call writefile((s:is_win ? ['@echo off'] : []) + split($FZF_DEFAULT_COMMAND, "\n"), temps.source) let dict.source = (empty($SHELL) ? &shell : $SHELL) . (s:is_win ? ' /c ' : ' ') . s:shellesc(temps.source) endif