Skip to content
Myr

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

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

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

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
290 unmodified lines
291 endtry292293 if !has_key(dict, 'source') && !empty($FZF_DEFAULT_COMMAND)294 let temps.source = tempname().(s:is_win ? '.bat' : '')295 call writefile(split($FZF_DEFAULT_COMMAND, "\n"), temps.source)295 call writefile((s:is_win ? ['@echo off'] : []) + split($FZF_DEFAULT_COMMAND, "\n"), 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')
381 unmodified lines