mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-09 04:52:30 +08:00
See the last line of "fzf --version" output
The output may contain some warning messages from the shell. While such extra messages should be properly fixed by the user, we can ignore them by checking the last line of the output. Related: https://github.com/junegunn/fzf.vim/issues/1145#issuecomment-719465248
This commit is contained in:
@@ -76,7 +76,7 @@ function! s:check_requirements()
|
||||
if v:shell_error || empty(output)
|
||||
throw 'Failed to run "fzf --version": ' . string(output)
|
||||
endif
|
||||
let fzf_version = matchstr(output[0], '[0-9.]\+')
|
||||
let fzf_version = matchstr(output[-1], '[0-9.]\+')
|
||||
|
||||
if s:version_requirement(fzf_version, s:min_version)
|
||||
let s:checked = 1
|
||||
|
||||
Reference in New Issue
Block a user