folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.24k stars 178 forks source link

Fix error when item.filename is nil #351

Closed HarmtH closed 9 months ago

HarmtH commented 9 months ago

I'm using telescope-file-browser, and whenever I pressed the change_cwd action (https://github.com/nvim-telescope/telescope-file-browser.nvim#mappings) I got the following error from trouble.nvim:

E5108: Error executing lua: ...im/lazy/trouble.nvim/lua/trouble/providers/telescope.lua:15: attempt to concatenate field 'filename' (a nil value)

This PR fixes this.

HarmtH commented 9 months ago

Seems that did didn't really work, trouble still expects item.bufnr to be set, so will just fail elsewhere.