[fzf#vim#preview] Use ruby in Windows if available (#471)

Close #459
This commit is contained in:
Jan Edmund Lazo
2017-10-22 09:50:12 -04:00
committed by Junegunn Choi
parent fbfbd04870
commit b51382fe9e
2 changed files with 7 additions and 3 deletions

View File

@@ -18,7 +18,11 @@ end
usage if ARGV.empty?
file, center = ARGV.first.split(':')
file, center, extra = ARGV.first.split(':')
if ARGV.first =~ /^[A-Z]:\\/
file << ':' + center
center = extra
end
usage unless file
path = File.expand_path(file)