mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
fix(explorer): call original on_close
. Closes #971
This commit is contained in:
parent
cd6e336ec0
commit
a0bee9f662
1 changed files with 5 additions and 1 deletions
|
@ -46,8 +46,12 @@ function State.new(picker)
|
|||
end
|
||||
|
||||
if opts.watch then
|
||||
picker.opts.on_close = function()
|
||||
local on_close = picker.opts.on_close
|
||||
picker.opts.on_close = function(p)
|
||||
require("snacks.explorer.watch").abort()
|
||||
if on_close then
|
||||
on_close(p)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue