Fix vim blame truncating first character in short hash

This commit is contained in:
Talia 2020-08-17 14:39:17 +02:00
parent 0327cd4f21
commit 230f3ee906

View file

@ -176,7 +176,7 @@ function s:split_blame_entry(idx, entry)
let l:map["commit"]=a:entry[:match(a:entry, " ")-1] let l:map["commit"]=a:entry[:match(a:entry, " ")-1]
let l:map["time"]=strftime("%Y-%d-%m %H:%M:%S", l:map["committer-time"]) let l:map["time"]=strftime("%Y-%d-%m %H:%M:%S", l:map["committer-time"])
let l:map["date"]=strftime("%Y-%d-%m", l:map["committer-time"]) let l:map["date"]=strftime("%Y-%d-%m", l:map["committer-time"])
let l:map["short"]=l:map["commit"][1:8]." ".l:map["time"]." ".l:map["author"] let l:map["short"]=l:map["commit"][:6]." ".l:map["time"]." ".l:map["author"]
return l:map return l:map
endfun endfun
let s:split_blame_entry_ref = funcref("s:split_blame_entry") let s:split_blame_entry_ref = funcref("s:split_blame_entry")