Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…338) Skip preview for non-existing buffer (`bufnr == 0`). The vim docs say: ``` getqflist() Quickfix list entries with a non-existing buffer number are returned with "bufnr" set to zero (Note: some functions accept buffer number zero for the alternate buffer, you may need to explicitly check for zero). ``` This causes trouble for the "`Trouble`" file section: ![](https://user-images.githubusercontent.com/721196/260180476-286d5945-2f53-4f2c-aedc-af793c0e96db.png) To fix, we simply do: ```lua function View:_preview() ... if item.bufnr == 0 then return end util.debug("preview") ... end ```
- Loading branch information