Fix git_diff to use last commit hash

This commit is contained in:
Talia 2018-04-12 10:05:26 +02:00
parent 7aa2ac0433
commit 25413fc9a2

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("HEAD")
call s:git_diff(get(s:git_history(), 1, "HEAD"))
end
end
endfun