mirror of https://github.com/folke/lazy.nvim.git
fix(diffview): fixed parameter for showing single commit with DiffView. Fixes #304
This commit is contained in:
parent
e77be3cf3b
commit
a32e307981
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue