summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yazi-enter.yazi/main.lua3
1 files changed, 3 insertions, 0 deletions
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