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
1 changed files with 1 additions and 1 deletions

View File

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