kassio / neoterm

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

:Tclose / :TcloseAll closes non-neoterm window #203

Closed rwjblue closed 6 years ago

rwjblue commented 6 years ago

When multiple neoterm's have been opened but only one is displayed, calling :TcloseAll or :Tclose closes a non-neoterm window.

Steps to reproduce after opening a file (e.g. nvim my-file.txt):

:vsp
:Tnew
:Tnew
:TcloseAll
:1Topen
:Tclose

After the last command, the split opened in the first command is closed (but the neoterm window is still open). Changing the last command to :TcloseAll (instead of :Tclose) will close the neoterm window that is open in addition to closing the split.

This issue cropped up when upgrading from 1818f5e to d2a56da. I'm not sure how best to help track this down further, but I'm happy to help if I can...

rwjblue commented 6 years ago

Thank you!!