[vim] Ignore argument to fzf#exec if it's lower than minimum requirement

This commit is contained in:
Junegunn Choi 2024-08-28 13:49:41 +09:00
parent d06c5ab990
commit a09c6e991a
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -226,7 +226,10 @@ function! fzf#exec(...)
let s:exec = binaries[-1] let s:exec = binaries[-1]
endif 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) if !has_key(s:checked, min_version)
let fzf_version = s:get_version(s:exec) let fzf_version = s:get_version(s:exec)
if empty(fzf_version) if empty(fzf_version)