mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(picker.preview): when preview has no position info, scroll to top
This commit is contained in:
parent
cd193befa9
commit
7a5ab4669f
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue