mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 04:34:26 +08:00
Use system() instead of systemlist() for older versions of Vim
Fix #1184
This commit is contained in:
@@ -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')"
|
throw "fzf#exec function not found. You need to upgrade Vim plugin from the main fzf repository ('junegunn/fzf')"
|
||||||
endif
|
endif
|
||||||
let exec = fzf#exec()
|
let exec = fzf#exec()
|
||||||
let output = systemlist(exec . ' --version')
|
let output = split(system(exec . ' --version'), "\n")
|
||||||
if v:shell_error || empty(output)
|
if v:shell_error || empty(output)
|
||||||
throw 'Failed to run "fzf --version": ' . string(output)
|
throw 'Failed to run "fzf --version": ' . string(output)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user