Fix GitCompare on file to use HEAD

Forgot vimscript starts indexing at 0 tehe~
This commit is contained in:
Talia 2018-04-12 10:17:54 +02:00
parent 25413fc9a2
commit f57de95ef2
1 changed files with 1 additions and 1 deletions

2
vimrc
View File

@ -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