Skip to content
Snippets Groups Projects
Commit a847fe87 authored by Prabir Shrestha's avatar Prabir Shrestha Committed by Junegunn Choi
Browse files

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

parent 5bb18b64
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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