-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
[BUG] Can not close last window #442
Comments
same problem |
Based on what you are both reporting it seems that the plugin you are using is trying to close all windows including the last one which is the toggleterm window. This is correctly seen as an error since if you did close all windows neovim would exit. I think this is the same for the standard terminal and I'm not sure this is a problem for this plugin and rather the other plugin should be deleting outdated buffers but not closing windows IMO. |
I figure out a way to workaround.
on_open is the terminal's callback. |
@akinsho I guess @shan-weiqiang and I have the same root problem, I want to switch the session and open the terminal window and immediately switch to the new session directory instead of continuing in the previous session's directory. So the previous idea was to close all the term windows created before switching sessions and re-create them in the new session. |
Is there an existing issue for this?
Current Behavior
when switching from one session to another session, with terminal not in vim.o.sessionoptions, the toggleterm window can not be closed
Expected Behavior
when switch from one session to another session, toggleterm window should be closed
Steps To Reproduce
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: