From 4bff1db8eac781fb909b56fa0b625d50c8f1c994 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Sat, 5 Sep 2026 14:50:50 +0200 Subject: Return zero for no target action --- yazi-enter.yazi/main.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yazi-enter.yazi/main.lua') diff --git a/yazi-enter.yazi/main.lua b/yazi-enter.yazi/main.lua index 902fbfd..c6f5b74 100644 --- a/yazi-enter.yazi/main.lua +++ b/yazi-enter.yazi/main.lua @@ -139,6 +139,9 @@ local commit = ya.sync(function(_, mode, submitted_query) end local is_dir = target.cha.is_dir local decision = decide_target(mode, is_dir) + if decision == ACTION_NONE then + return 0 + end if decision == ACTION_ENTER then ya.emit("enter", {}) elseif decision == ACTION_OPEN_HOVERED then -- cgit v1.2.3