[vim] Allow closing Vim running fzf without confirmation

Close #2287
This commit is contained in:
Junegunn Choi 2020-12-16 21:44:28 +09:00
parent 00f4551a7b
commit ab3937ee5a
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -831,7 +831,7 @@ 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)}
let term_opts = {'exit_cb': function(fzf.on_exit), 'term_kill': 'term'}
if is_popup
let term_opts.hidden = 1
else