Skip to content

Commit

Permalink
docs: make sure to only cd into directories
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Mar 20, 2024
1 parent dedc4d9 commit a4b7028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4b7028

Please sign in to comment.