diff --git a/plugin/fzf.vim b/plugin/fzf.vim index dc18470..b7e7dc4 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -452,14 +452,14 @@ function! s:execute_term(dict, command, temps) abort execute self.ppos.win.'wincmd w' endif - if !s:exit_handler(a:code, self.command, 1) - return - endif - if bufexists(self.buf) execute 'bd!' self.buf endif + if !s:exit_handler(a:code, self.command, 1) + return + endif + call s:pushd(self.dict) let lines = s:collect(self.temps) call s:callback(self.dict, lines)