fix: open files under cwd with relative name (#693)

This commit is contained in:
Muhammad Imaduddin 2025-12-30 01:15:58 +07:00 committed by GitHub
parent bbfa7cba85
commit 634049414b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -277,7 +277,7 @@ M.normalize_url = function(url, callback)
local norm_path = util.addslash(fs.os_to_posix_path(realpath))
callback(scheme .. norm_path)
else
callback(realpath)
callback(vim.fn.fnamemodify(realpath, ":."))
end
end)
)