akinsho / akinsho/toggleterm.nvim

[BUG] Can not close last window

未关闭
#442 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Lua
星标
5.6k
派生
206
PR 合并指标
30 天内没有已合并 PR

描述

### 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
![image](https://github.com/akinsho/toggleterm.nvim/assets/43443481/ca3dce39-4b24-43d0-ac51-cc93f6f7a10e)

### 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_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。