akinsho / akinsho/toggleterm.nvim
[BUG] Can not close last window
- Dominant language
- Lua
- Stars
- 5.6k
- Forks
- 206
- PR merge metrics
- No merged PRs in 30d
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### 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
1. install dbsession plugin
2. save one session and with one toggleterminal
3. in another session, open toggleterm, the term is the first session's terminal
### Environment
```Markdown
- OS:ubuntu 18.04
- neovim version:0.9.0
- Shell:zsh
```
### Anything else?
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.