summaryrefslogtreecommitdiff
path: root/yazi-enter.yazi
diff options
context:
space:
mode:
authorJackson Moore <jacksonmoore@tuta.io>2026-09-05 14:50:16 +0200
committerJackson Moore <jacksonmoore@tuta.io>2026-09-05 14:50:16 +0200
commitcb480ed83107e92d71cc22e944bf0adedfae33c2 (patch)
tree42415e8e8759cbe17792ecd447dd856d8bba9645 /yazi-enter.yazi
parent6985dab7f0b38cd2c4e269da119bc44649161a54 (diff)
Guard hovered target highlights
Diffstat (limited to 'yazi-enter.yazi')
-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 7080fbc..6e5b455 100644
--- a/yazi-enter.yazi/main.lua
+++ b/yazi-enter.yazi/main.lua
@@ -134,6 +134,9 @@ local commit = ya.sync(function(_, mode, submitted_query)
if tostring(finder) ~= submitted_query then
return 0
end
+ if target:highlights() == nil then
+ return 0
+ end
return 0
end)