fix(explorer): clear selection after delete. Closes #898

This commit is contained in:
Folke Lemaitre 2025-02-03 14:47:52 +01:00
parent 95d3e7f961
commit 44733eaa78
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -586,6 +586,7 @@ M.actions = {
Snacks.notify.error("Failed to delete `" .. path .. "`:\n- " .. err) Snacks.notify.error("Failed to delete `" .. path .. "`:\n- " .. err)
end end
end end
picker.list:set_selected() -- clear selection
state:update({ force = true }) state:update({ force = true })
end) end)
end, end,