fix: open files under cwd with relative name (#693)
This commit is contained in:
parent
bbfa7cba85
commit
634049414b
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue