snacks.nvim icon indicating copy to clipboard operation
snacks.nvim copied to clipboard

bug: error when exiting terminal

Open 7c78 opened this issue 8 months ago • 3 comments

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

  1. Open a terminal
  2. Press 'Ctrl c'
  3. Press 'Ctrl d'

Expected Behavior

No error

Repro


7c78 avatar Apr 09 '25 04:04 7c78

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.

github-actions[bot] avatar May 10 '25 02:05 github-actions[bot]

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

c30ra avatar May 15 '25 18:05 c30ra

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:

  1. start nvim
  2. open file
  3. open terminal
  4. close file (terminal is the only window left)
  5. Ctrl-D in terminal

d3m1gd avatar May 16 '25 05:05 d3m1gd

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.

github-actions[bot] avatar Jun 16 '25 02:06 github-actions[bot]

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.

github-actions[bot] avatar Jul 30 '25 02:07 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Aug 07 '25 02:08 github-actions[bot]