Fix GitCompare on file to use HEAD
Forgot vimscript starts indexing at 0 tehe~
This commit is contained in:
parent
25413fc9a2
commit
f57de95ef2
1 changed files with 1 additions and 1 deletions
2
vimrc
2
vimrc
|
@ -424,7 +424,7 @@ function! s:git_diff(...)
|
|||
if exists("b:git_revision_hash")
|
||||
call s:git_diff(get(s:git_history(), index(s:git_history(), b:git_revision_hash)+1, "NIL"))
|
||||
else
|
||||
call s:git_diff(get(s:git_history(), 1, "HEAD"))
|
||||
call s:git_diff(get(s:git_history(), 0, "HEAD"))
|
||||
end
|
||||
end
|
||||
endfun
|
||||
|
|
Loading…
Reference in a new issue