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

check if bufdata.last_win != nil #356

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

linusboehm
Copy link
Contributor

When opening nvim in diffview (nvim -c DiffviewOpen) and then toggeling aerial, aerial errors when trying to call vim.api.nvim_win_is_valid(bufdata.last_win) as bufdata.last_win == nil. This change adds a check and returns in case of a nil value.

When opening nvim in diffview (`nvim -c DiffviewOpen`) and then toggeling aerial,
aerial errors when trying to call `vim.api.nvim_win_is_valid(bufdata.last_win)`
as bufdata.last_win == nil. This change adds a check and returns in case of a nil
value.
@github-actions github-actions bot requested a review from stevearc March 27, 2024 20:37
@stevearc
Copy link
Owner

LGTM thanks!

@stevearc stevearc merged commit 24ebaca into stevearc:master Mar 28, 2024
8 checks passed
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.

None yet

2 participants