Skip to content
Snippets Groups Projects
Unverified Commit c2db67c1 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[vim] Prepend @Echo off to $FZF_DEFAULT_COMMAND on Windows (#847)

parent 95265949
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment