nvim: autoload/git: Fix the arguments to difftool
This commit is contained in:
parent
2548f63793
commit
1f165bbed4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue