Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tclose & TcloseAll not closing Terminal window #271

Closed
1 of 2 tasks
thewatts opened this issue Apr 9, 2020 · 5 comments
Closed
1 of 2 tasks

Tclose & TcloseAll not closing Terminal window #271

thewatts opened this issue Apr 9, 2020 · 5 comments
Labels

Comments

@thewatts
Copy link

thewatts commented Apr 9, 2020

So, I could be totally missing something (and apologies if so!)

Describe the bug
:Tclose or :TcloseAll isn't closing the opened terminal.

To Reproduce
Steps to reproduce the behavior:

  1. Open nvim
  2. Run :Tnew
    • This opens a Terminal in the buffer
  3. Run :Tclose or :TcloseAll
  4. Nothing happens (the terminal session doesn't close)

Expected behavior
I would have expected the Terminal buffer to close

Screenshots
neoterm-tclose

Versions (please complete the following information):

  • OS: MacOS
  • neoterm commit sha1
    • Latest (installed this evening w/ Plug) - 5146f7e
  • Vim or Neovim
    • Vim
    • Neovim
  • Version 0.4.3

Additional context

I removed all plugins and all settings from my init.vim file - only having neoterm installed (shown in the gif above).

@thewatts thewatts added the bug label Apr 9, 2020
@kassio kassio closed this as completed in 7ff87c3 Apr 12, 2020
@kassio
Copy link
Owner

kassio commented Apr 12, 2020

It should be fixed now, thanks for opening the issue.

@thewatts
Copy link
Author

@kassio thank you!

And thank you for your amazing work on this project!

@thewatts
Copy link
Author

@kassio I just updated with Plug, and tried again - unfortunately it is still not working.

I tried removing all plugins/config from init.vim (aside from neoterm), and double-checked the commit history of the code that got pulled when installing.

Am I missing something?

@kassio
Copy link
Owner

kassio commented Apr 13, 2020

If you have only a neoterm opened, you'll need to use :Tclose! (with the !).
Can you put the step by step of your test, please?

What I tried:

  • Scenario 1
  1. nvim file
  2. :Tnew
  3. :Tclose
  4. It closes the neoterm and goes back to the file
  • Scenario 2
  1. nvim
  2. :Tnew
  3. :Tclose
  4. Does nothing, because it's the only window with a buffer opened
  5. :Tclose! goes to an empty buffer.

@thewatts
Copy link
Author

@kassio you're completely right!

I didn't realize that I had to use Tclose! in this specific instance.

Thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants