fix(diff): correctly relativize paths for diffing current buffer (#108)

This commit is contained in:
Lars Hansen
2026-05-06 09:34:26 +02:00
committed by GitHub
parent a2d194d49e
commit f5d11a3098
5 changed files with 19 additions and 21 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ diff.register_backend("diffview", {
end
local raw_path = opts.path or jj_path or "%"
local path, err = utils.normalize_repo_path(raw_path)
local path, err = utils.normalize_relative_path(raw_path)
if not path then
utils.notify(err or "Could not resolve file path for Diffview", vim.log.levels.ERROR)
return