mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-12 06:22:29 +08:00
@@ -72,7 +72,11 @@ 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 fzf_version = matchstr(systemlist(exec . ' --version')[0], '[0-9.]*')
|
||||
let output = systemlist(exec . ' --version')
|
||||
if v:shell_error || empty(output)
|
||||
throw 'Failed to run "fzf --version": ' . string(output)
|
||||
endif
|
||||
let fzf_version = matchstr(output[0], '[0-9.]\+')
|
||||
|
||||
if s:version_requirement(fzf_version, s:min_version)
|
||||
let s:checked = 1
|
||||
|
||||
Reference in New Issue
Block a user