mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-30 06:35: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')"
|
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 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)
|
if s:version_requirement(fzf_version, s:min_version)
|
||||||
let s:checked = 1
|
let s:checked = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user