diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2024-08-28 13:49:41 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2024-08-28 13:49:41 +0900 |
| commit | a09c6e991aa494bed852f8a8c40bfd94ce43aac2 (patch) | |
| tree | 1cc907d808e557794fadff78b4c837000ea464fa | |
| parent | d06c5ab990d673ac4da1a150ca04e783c4ff3e82 (diff) | |
| download | fzf-a09c6e991aa494bed852f8a8c40bfd94ce43aac2.tar.gz | |
[vim] Ignore argument to fzf#exec if it's lower than minimum requirement
| -rw-r--r-- | plugin/fzf.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 598b2084..7f721998 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -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) |
