Skip to content

Commit a32e307

Browse files
committedJan 9, 2023
fix(diffview): fixed parameter for showing single commit with DiffView. Fixes #304
1 parent e77be3c commit a32e307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lua/lazy/view/diff.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ M.handlers = {
2525
["diffview.nvim"] = function(plugin, diff)
2626
local args
2727
if diff.commit then
28-
args = ("-C=%s"):format(plugin.dir) .. " " .. diff.commit
28+
args = ("-C=%s"):format(plugin.dir) .. " " .. diff.commit .. "^!"
2929
else
3030
args = ("-C=%s"):format(plugin.dir) .. " " .. diff.from .. ".." .. diff.to
3131
end

0 commit comments

Comments
 (0)
Please sign in to comment.