You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problems
* If dap-view buffer is :bwipeout-ed, subsequent close() raises invalid
buffer error while attempting to nvim_buf_delete (= bwipeout) the
buffer because the buffer is not removed from the state.
* quit_buf_autocmd is weird.
BufDelete is invoked when a buffer becomes unlisted.
So, since dap-view buffer is already unlisted, closing it with
commands like :q does not invoke the BufDelete autocmd.
Solution:
* Let close() check the validity of the buffer first.
* Use BufWipeout autocmd.
* Let the BufWipeout callback first remove the buffer from dap-view
state to avoid deleting the buffer inside BufWipeout (E937).
0 commit comments