Use "type" instead of "cat" on windows (#836)
This commit is contained in:
parent
5bb18b6441
commit
a847fe8754
@ -304,7 +304,7 @@ try
|
|||||||
elseif type == 3
|
elseif type == 3
|
||||||
let temps.input = tempname()
|
let temps.input = tempname()
|
||||||
call writefile(source, temps.input)
|
call writefile(source, temps.input)
|
||||||
let prefix = 'cat '.s:shellesc(temps.input).'|'
|
let prefix = (s:is_win ? 'type ' : 'cat ').s:shellesc(temps.input).'|'
|
||||||
else
|
else
|
||||||
throw 'invalid source type'
|
throw 'invalid source type'
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user