diff options
author | Prabir Shrestha <mail@prabir.me> | 2017-02-06 21:42:08 -0800 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-02-07 14:42:08 +0900 |
commit | a847fe875413ac0d35815d67fea3e03a6c0cb2ff (patch) | |
tree | e0e6e035220406e48ea2d2c41663bf8b77878ced | |
parent | 5bb18b644178c4075d81eb6b85af2ecc5104d55a (diff) |
Use "type" instead of "cat" on windows (#836)
-rw-r--r-- | plugin/fzf.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 5d1ed2f4..1225cec3 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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 |