nvim: autoload/git: Fix the arguments to diff
Not sure how we keep getting this wrong.
This commit is contained in:
parent
78d986ab26
commit
c95289343a
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>
|
||||
let line = trim(getline('.'))
|
||||
let commit = split(line, " ")
|
||||
execute "Gtabedit | Git diff " . commit[1] . " " . commit[1] . "~1 | only"
|
||||
execute "Gtabedit | Git diff " . commit[1] . "^ " . commit[1] . "| only"
|
||||
endfunction
|
||||
|
||||
" To be used after running some variation of Git log.
|
||||
|
|
Loading…
Reference in a new issue