summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2021-03-08 12:56:06 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2021-03-08 12:56:06 +0900
commitcbfbb49ab4fde73cb5e10ed076645155047425cb (patch)
tree732b51d404553d1d269703dad4590e4ac484cfb4
parent489b16efce5249d172f965046f229cca4c836aa7 (diff)
[vim] Vim 8.0 compatibility
Fix #2367
-rw-r--r--plugin/fzf.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 95a6d77a..26c35b8d 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