fix: misc typos #37471

This commit is contained in:
phanium
2026-01-27 22:18:02 +08:00
committed by GitHub
parent ae93639ec4
commit dfa5d79d05
6 changed files with 14 additions and 12 deletions

View File

@@ -809,8 +809,8 @@ function M.relpath(base, target, opts)
vim.validate('target', target, 'string')
vim.validate('opts', opts, 'table', true)
base = vim.fs.normalize(vim.fs.abspath(base))
target = vim.fs.normalize(vim.fs.abspath(target))
base = M.normalize(M.abspath(base))
target = M.normalize(M.abspath(target))
if base == target then
return '.'
end