kassio / neoterm

Wrapper of some vim/neovim's :terminal functions.
Other
1.32k stars 117 forks source link

Opening neoterm creates a blank buffer #160

Closed bronzehedwick closed 7 years ago

bronzehedwick commented 7 years ago

Using Topen or Ttoggle creates a blank [No Name] buffer, which clog up the ls list. Minor, but annoying.

kassio commented 7 years ago

Hi @bronzehedwick! I wasn't able to replicate what you're saying with the following minimal init.vim:

set runtimepath-=~/.config/nvim
set runtimepath-=~/.config/nvim/after
set runtimepath+=~/.config/nvim/pack/minpac/start/neoterm " your neoterm path here.
set inccommand=split

topen

Can you try it with a minimal init.vim like that and if the problem persists tell me please:

bronzehedwick commented 7 years ago

Hm, I wasn't able to replicate on the provided minimal config either. I should have thought of doing that before creating the issue. Sorry about that.

I'll play some plugin whack-a-mole and see what's causing the issue.

kassio commented 7 years ago

Cool, I'll close it for now, but feel free to re-open it if you find something.

bronzehedwick commented 7 years ago

I finally got some time to research this, and this issue happens when set hidden is also active.

kassio commented 7 years ago

do you have a miminal vimrc for tests, please?

bronzehedwick commented 7 years ago

Yes, here's the minimal vimrc I used to recreate the issue:

set runtimepath-=~/.config/nvim
set runtimepath-=~/.config/nvim/after
set runtimepath+=~/.config/nvim/plugged/neoterm
set inccommand=split
set hidden
kassio commented 7 years ago

Even with the given minimal init.vim I wasn't able to replicate it: x

bronzehedwick commented 7 years ago

Interesting. I was able to replicate the issue after calling Topen, then Tclose twice. Strangely, the first times I call Topen and Tclose I don't get the extra buffers, but every subsequent time I do.

kassio commented 7 years ago

wow! yeah, I was able to replicate it, this is a huge problem actually!

_home__config_nvim

🏃 I'll investigate it ASAP!

bronzehedwick commented 7 years ago

:+1: