From cbfbb49ab4fde73cb5e10ed076645155047425cb Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 8 Mar 2021 12:56:06 +0900 Subject: [PATCH] [vim] Vim 8.0 compatibility Fix #2367 --- plugin/fzf.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 95a6d77..26c35b8 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -842,7 +842,10 @@ function! s:execute_term(dict, command, temps) abort if has('nvim') call termopen(command, fzf) else - let term_opts = {'exit_cb': function(fzf.on_exit), 'term_kill': 'term'} + let term_opts = {'exit_cb': function(fzf.on_exit)} + if v:version >= 802 + let term_opts.term_kill = 'term' + endif if is_popup let term_opts.hidden = 1 else