Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

codymikol
Copy link
Contributor

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

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 rcarriga merged commit 46adcd0 into nvim-neotest:master Jul 11, 2024
4 checks passed
@rcarriga
Copy link
Collaborator

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants