Skip to content

Commit

Permalink
[vim] Set &bufhidden=hide before starting terminal buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed Feb 5, 2020
1 parent 311b78a commit 0896036
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/fzf.vim
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,9 @@ function! s:execute_term(dict, command, temps) abort
if has('nvim')
call termopen(command, fzf)
else
if !len(&bufhidden)
setlocal bufhidden=hide
endif
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
call term_wait(fzf.buf, 20)
Expand Down

0 comments on commit 0896036

Please sign in to comment.