mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(explorer): dont focus first file when not searching
This commit is contained in:
parent
cb99c46fa1
commit
3fd437ccd3
1 changed files with 3 additions and 0 deletions
|
@ -164,6 +164,9 @@ function M.setup(opts)
|
|||
end
|
||||
end,
|
||||
on_done = function()
|
||||
if not searching then
|
||||
return
|
||||
end
|
||||
local picker = ref.value
|
||||
if not picker or picker.closed then
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue