diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2021-03-08 12:56:06 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2021-03-08 12:56:06 +0900 |
commit | cbfbb49ab4fde73cb5e10ed076645155047425cb (patch) | |
tree | 732b51d404553d1d269703dad4590e4ac484cfb4 | |
parent | 489b16efce5249d172f965046f229cca4c836aa7 (diff) |
[vim] Vim 8.0 compatibility
Fix #2367
-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 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 |