2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-12 07:11:11 +00:00

Use "type" instead of "cat" on windows (#836)

This commit is contained in:
Prabir Shrestha 2017-02-06 21:42:08 -08:00 committed by Junegunn Choi
parent 5bb18b6441
commit a847fe8754

View File

@ -304,7 +304,7 @@ try
elseif type == 3
let temps.input = tempname()
call writefile(source, temps.input)
let prefix = 'cat '.s:shellesc(temps.input).'|'
let prefix = (s:is_win ? 'type ' : 'cat ').s:shellesc(temps.input).'|'
else
throw 'invalid source type'
endif