fix(diffview): fixed parameter for showing single commit with DiffView. Fixes #304

This commit is contained in:
Folke Lemaitre 2023-01-09 08:05:32 +01:00
parent e77be3cf3b
commit a32e307981
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ M.handlers = {
["diffview.nvim"] = function(plugin, diff) ["diffview.nvim"] = function(plugin, diff)
local args local args
if diff.commit then if diff.commit then
args = ("-C=%s"):format(plugin.dir) .. " " .. diff.commit args = ("-C=%s"):format(plugin.dir) .. " " .. diff.commit .. "^!"
else else
args = ("-C=%s"):format(plugin.dir) .. " " .. diff.from .. ".." .. diff.to args = ("-C=%s"):format(plugin.dir) .. " " .. diff.from .. ".." .. diff.to
end end