nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.2k stars 107 forks source link

fix(window): handle when a PersistedWindow's buffer has been deleted #434

Closed codymikol closed 1 month ago

codymikol commented 1 month ago

Adds an additional check to the self.buffer function of PersistedWindow to see if the current bufnr still exists. This prevents a crash in cases where the persisted window's buffer has been deleted by an external script.

Fixes N/A

rcarriga commented 1 month ago

Thanks for the PR!