bug: error when exiting terminal
Did you check docs and existing issues?
- [x] I have read all the snacks.nvim docs
- [x] I have updated the plugin to the latest version before submitting this issue
- [x] I have searched the existing issues of snacks.nvim
- [x] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.11
Operating system/version
Fedora 41
Describe the bug
A message appears when I close terminal
Steps To Reproduce
- Open a terminal
- Press 'Ctrl c'
- Press 'Ctrl d'
Expected Behavior
No error
Repro
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
same problem:
Error executing TermClose autocommand
Terminal exited with code 130. Check for any errors.
I'm on fedora 42, with zsh, oh-my-zsh
Error detected while processing TermClose Autocommands for "*"..BufWinEnter Autocommands for "*":
Error executing lua callback: ...e/nvim/site/pack/deps/opt/snacks.nvim/lua/snacks/win.lua:893: Invalid buffer id: 8
stack traceback:
[C]: in function 'nvim_win_set_buf'
...e/nvim/site/pack/deps/opt/snacks.nvim/lua/snacks/win.lua:893: in function <...e/nvim/site/pack/deps/opt/snac
ks.nvim/lua/snacks/win.lua:847>
[C]: in function 'nvim_buf_delete'
vim/_defaults.lua: in function <vim/_defaults.lua:0>
repro:
- start nvim
- open file
- open terminal
- close file (terminal is the only window left)
Ctrl-Din terminal
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.