mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-16 10:15:09 +00:00
[vim] Set &bufhidden=hide before starting terminal buffer
This commit is contained in:
parent
311b78ae82
commit
0896036266
@ -746,6 +746,9 @@ function! s:execute_term(dict, command, temps) abort
|
|||||||
if has('nvim')
|
if has('nvim')
|
||||||
call termopen(command, fzf)
|
call termopen(command, fzf)
|
||||||
else
|
else
|
||||||
|
if !len(&bufhidden)
|
||||||
|
setlocal bufhidden=hide
|
||||||
|
endif
|
||||||
let fzf.buf = term_start([&shell, &shellcmdflag, command], {'curwin': 1, 'exit_cb': function(fzf.on_exit)})
|
let fzf.buf = term_start([&shell, &shellcmdflag, command], {'curwin': 1, 'exit_cb': function(fzf.on_exit)})
|
||||||
if !has('patch-8.0.1261') && !has('nvim') && !s:is_win
|
if !has('patch-8.0.1261') && !has('nvim') && !s:is_win
|
||||||
call term_wait(fzf.buf, 20)
|
call term_wait(fzf.buf, 20)
|
||||||
|
Loading…
Reference in New Issue
Block a user