NeoZoom.lua
NeoZoom.lua copied to clipboard
Calling :q inside a zoom window gives invalid window id
As the title says, :q
gives an error when called in a zoom
Error detected while processing WinEnter Autocommands for "*":
Error executing lua callback: ...nvim/site/pack/packer/start/NeoZoom.lua/lua/neo-zoom.lua:92: Invalid window id: 1003
stack traceback:
[C]: in function 'nvim_win_get_buf'
...nvim/site/pack/packer/start/NeoZoom.lua/lua/neo-zoom.lua:92: in function <...nvim/site/pack/packer/start/NeoZoom.lua/lua/neo-zoom.lua:87>
This might make sense, but the muscle memory of calling :q
to close something is quite hard to get rid off.