mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-06 03:38:16 +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
|
||||||
end,
|
end,
|
||||||
on_done = function()
|
on_done = function()
|
||||||
|
if not searching then
|
||||||
|
return
|
||||||
|
end
|
||||||
local picker = ref.value
|
local picker = ref.value
|
||||||
if not picker or picker.closed then
|
if not picker or picker.closed then
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue