Closed krishnakumarg1984 closed 2 years ago
This is something that used to work, but must have regressed at some point. Should be fixed now
Thank you. Indeed it works now. For robustness, is it worth adding a regression test for this issue?
It would be nice to have, but would take some time and I have other tasks (in general, but also on aerial) that I think are higher priority
Did this stop working again? I'm having the same issue on Neovim 1.10.0. :q
seems to work but ctrl-w q
and ZQ
/ZZ
don't.
Description Let's say we open a buffer with some symbols and use aerial to open the symbol tree. When we close the original buffer (e.g. through
:bwipeout
,:bdelete
,<C-W> + c
etc, the aerial window should also close. For instance, it is expected that the aerial window shall auto-close when the last valid file/buffer is closed, and can be mildly surprising when just the aerial window persists as the last open buffer.Currently, the aerial window is left orphaned, pointing to dangling symbols which lead to a bunch of error lines when trying to open.
System information
To Reproduce Steps to reproduce the behavior:
:AerialToggle<CR>
:q
(orZZ
,ZQ
etc). The aerial window alone will persist.Screenshots
After
:q
, we are left withAnd pressing
<CR>
on any of the symbols in the tree results in an error: