Skip to content
Snippets Groups Projects
Commit 2b7c3df6 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

[neovim] Check tabpagenr() as well

parent f766531e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment