diff --git a/docs/tips.md b/docs/tips.md index e9c91e0b..f53f388d 100644 --- a/docs/tips.md +++ b/docs/tips.md @@ -176,7 +176,7 @@ local function entry(_, args) end local target = parent.files[parent.cursor + 1 + args[1]] - if target then + if target and target.cha.is_dir then ya.manager_emit("cd", { tostring(target.url) }) end end