Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check if bufdata.last_win != nil (#356)
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. Co-authored-by: Linus Boehm <linusboehm@gmail.com>
- Loading branch information