[X] I have searched the existing issues of trouble.nvim
[X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.11
Operating system/version
MacOS Sonoma
Describe the bug
quitting Nvim with trouble window open gives error
Steps To Reproduce
open trouble diagnostics window
make sure some buffer has focus. i.e trouble window is not in focus
type :q and following error appears
Error detected while processing BufEnter Autocommands for "<buffer=7>":
E5108: Error executing lua ....local/share/nvim/lazy/trouble.nvim/lua/trouble/view.lua:357: Vim:E444: Cannot close last window
stack traceback:
[C]: in function 'nvim_win_close'
....local/share/nvim/lazy/trouble.nvim/lua/trouble/view.lua:357: in function 'on_enter'
....local/share/nvim/lazy/trouble.nvim/lua/trouble/init.lua:215: in function 'action'
[string ":lua"]:1: in main chunk
Did you check docs and existing issues?
Neovim version (nvim -v)
0.11
Operating system/version
MacOS Sonoma
Describe the bug
quitting Nvim with trouble window open gives error
Steps To Reproduce
:q
and following error appearsExpected Behavior
Nvim should quit normally
Repro
No response