fidget.nvim icon indicating copy to clipboard operation
fidget.nvim copied to clipboard

fix: Use only the first line for the telescope picker entry

Open nazo6 opened this issue 1 month ago • 0 comments

While using the fidget telescope extension, I noticed that the following error occasionally occurs.

vim.schedule callback: .../nvim-data/lazy/telescope.nvim/lua/telescope/pickers.lua:1469: Cursor position outside buffer
stack traceback:
        [C]: in function 'nvim_win_set_cursor'
        .../nvim-data/lazy/telescope.nvim/lua/telescope/pickers.lua:1469: in function 'fn'
        vim/_editor.lua:296: in function <vim/_editor.lua:295>

This error seems to occur when the telescope picker entry contains line breaks. I fixed this by using only the first line of entry.message.

nazo6 avatar Oct 30 '25 06:10 nazo6