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)
|
||||
local args
|
||||
if diff.commit then
|
||||
args = ("-C=%s"):format(plugin.dir) .. " " .. diff.commit
|
||||
args = ("-C=%s"):format(plugin.dir) .. " " .. diff.commit .. "^!"
|
||||
else
|
||||
args = ("-C=%s"):format(plugin.dir) .. " " .. diff.from .. ".." .. diff.to
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue