[neovim] Check tabpagenr() as well

This commit is contained in:
Junegunn Choi 2015-05-14 02:19:40 +09:00
parent f766531e74
commit 2b7c3df66b

View File

@ -285,7 +285,7 @@ function! s:execute_term(dict, command, temps)
let tab = tabpagenr() let tab = tabpagenr()
let wnr = winnr() let wnr = winnr()
execute 'bd!' self.buf execute 'bd!' self.buf
if winnr() == wnr if winnr() == wnr && tabpagenr() == tab
close close
endif endif
if s:ptab == tab if s:ptab == tab