fix(picker.preview): when preview has no position info, scroll to top

This commit is contained in:
Folke Lemaitre 2025-10-31 17:53:02 +01:00
parent cd193befa9
commit 7a5ab4669f
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -368,6 +368,8 @@ function M:loc()
self:wo({ cursorline = true })
end
end)
else -- no position info, go to top
vim.api.nvim_win_set_cursor(self.win.win, { 1, 0 })
end
end