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

2
vimrc
View file

@ -424,7 +424,7 @@ function! s:git_diff(...)
if exists("b:git_revision_hash") if exists("b:git_revision_hash")
call s:git_diff(get(s:git_history(), index(s:git_history(), b:git_revision_hash)+1, "NIL")) call s:git_diff(get(s:git_history(), index(s:git_history(), b:git_revision_hash)+1, "NIL"))
else else
call s:git_diff(get(s:git_history(), 1, "HEAD")) call s:git_diff(get(s:git_history(), 0, "HEAD"))
end end
end end
endfun endfun