From 25413fc9a2d821b3813a1a4265d6eab3b41e63b3 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 12 Apr 2018 10:05:26 +0200 Subject: [PATCH] Fix git_diff to use last commit hash --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 0e43f44..9409204 100644 --- a/vimrc +++ b/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("HEAD") + call s:git_diff(get(s:git_history(), 1, "HEAD")) end end endfun