From cc13a4b728c7b76c63e6dc42f320cec955d74227 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 25 Nov 2020 13:51:11 +0900 Subject: [PATCH] Use system() instead of systemlist() for older versions of Vim Fix #1184 --- autoload/fzf/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 4f7003f..a248471 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -72,7 +72,7 @@ function! s:check_requirements() throw "fzf#exec function not found. You need to upgrade Vim plugin from the main fzf repository ('junegunn/fzf')" endif let exec = fzf#exec() - let output = systemlist(exec . ' --version') + let output = split(system(exec . ' --version'), "\n") if v:shell_error || empty(output) throw 'Failed to run "fzf --version": ' . string(output) endif