akinsho / akinsho/toggleterm.nvim

[BUG] Can not close last window

Đang mở
#442 4 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Lua
Star
5.6k
Fork
206
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.