summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/fzf.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index b6df6146..ae266464 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -285,7 +285,7 @@ function! s:execute_term(dict, command, temps)
let tab = tabpagenr()
let wnr = winnr()
execute 'bd!' self.buf
- if winnr() == wnr
+ if winnr() == wnr && tabpagenr() == tab
close
endif
if s:ptab == tab