Use system() instead of systemlist() for older versions of Vim

Fix #1184
This commit is contained in:
Junegunn Choi
2020-11-25 13:51:11 +09:00
parent 53b3aea0da
commit cc13a4b728

View File

@@ -72,7 +72,7 @@ function! s:check_requirements()
throw "fzf#exec function not found. You need to upgrade Vim plugin from the main fzf repository ('junegunn/fzf')"
endif
let exec = fzf#exec()
let output = systemlist(exec . ' --version')
let output = split(system(exec . ' --version'), "\n")
if v:shell_error || empty(output)
throw 'Failed to run "fzf --version": ' . string(output)
endif