mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.actions): when only 1 win, pick_win
will select that automatically. Show warning when no windows. See #623
This commit is contained in:
parent
71070b78f0
commit
ba5a70b84d
2 changed files with 27 additions and 16 deletions
|
@ -186,7 +186,7 @@ function State:setup(opts, ctx)
|
|||
if self.all then
|
||||
local picker = self.picker()
|
||||
if not picker then
|
||||
return
|
||||
return {}
|
||||
end
|
||||
picker.list:set_target()
|
||||
self.on_find = function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue