summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 3f218b8e..b6df6146 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -283,12 +283,17 @@ function! s:execute_term(dict, command, temps)
let fzf = { 'buf': bufnr('%'), 'dict': a:dict, 'temps': a:temps }
function! fzf.on_exit(id, code)
let tab = tabpagenr()
+ let wnr = winnr()
execute 'bd!' self.buf
+ if winnr() == wnr
+ close
+ endif
if s:ptab == tab
wincmd p
endif
call s:pushd(self.dict)
try
+ redraw!
call s:callback(self.dict, self.temps)
finally
call s:popd(self.dict)