mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-12-23 11:29:01 +00:00
[vim] Ignore argument to fzf#exec if it's lower than minimum requirement
This commit is contained in:
parent
d06c5ab990
commit
a09c6e991a
@ -226,7 +226,10 @@ function! fzf#exec(...)
|
||||
let s:exec = binaries[-1]
|
||||
endif
|
||||
|
||||
let min_version = a:0 ? a:1 : s:min_version
|
||||
let min_version = s:min_version
|
||||
if a:0 && s:compare_versions(a:1, min_version) > 0
|
||||
let min_version = a:1
|
||||
endif
|
||||
if !has_key(s:checked, min_version)
|
||||
let fzf_version = s:get_version(s:exec)
|
||||
if empty(fzf_version)
|
||||
|
Loading…
Reference in New Issue
Block a user