From 2b7c3df66ba7cd9358a97001e27c012d9899444b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 14 May 2015 02:19:40 +0900 Subject: [PATCH] [neovim] Check tabpagenr() as well --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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