nvim: autoload/git: Fix the arguments to difftool

This commit is contained in:
Sanchayan Maity 2021-10-20 22:14:05 +05:30
parent 2548f63793
commit 1f165bbed4

View file

@ -107,7 +107,7 @@ function! git#git_diff_commit() abort
" A line in Git log is of the form commit <SHA> " A line in Git log is of the form commit <SHA>
let line = trim(getline('.')) let line = trim(getline('.'))
let commit = split(line, " ") let commit = split(line, " ")
silent execute "Git difftool -y " . commit[1] . "^!" execute "Git difftool -y " . commit[1] . " " . commit[1] . "~1"
endfunction endfunction
" The next two functions allow scoping diffs by line range of a file and named " The next two functions allow scoping diffs by line range of a file and named