m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

[vim] Vim 8.0 compatibility

Fix #2367
This commit is contained in:
Junegunn Choi
2021-03-08 12:56:06 +09:00
parent 489b16efce
commit cbfbb49ab4

View File

@@ -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