[neovim] Check tabpagenr() as well

pull/226/merge
Junegunn Choi 9 years ago
parent f766531e74
commit 2b7c3df66b

@ -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

Loading…
Cancel
Save