From f001039ec7832e1cafa0a09941fc9cd9c16d6dec Mon Sep 17 00:00:00 2001 From: Daniel Castrillon Date: Thu, 23 Jul 2026 13:11:47 -0500 Subject: [PATCH] fix: clear selection after restoring trash files Signed-off-by: Daniel Castrillon --- yazi-plugin/preset/plugins/trash.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/yazi-plugin/preset/plugins/trash.lua b/yazi-plugin/preset/plugins/trash.lua index 79c3e4a8..da19b8cd 100644 --- a/yazi-plugin/preset/plugins/trash.lua +++ b/yazi-plugin/preset/plugins/trash.lua @@ -71,6 +71,7 @@ function M:setup() local ok, err = fs.trash.restore(nodes) if ok then + ya.emit("escape", { select = true }) ya.emit("refresh", {}) else notify("restore", err)