lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
687 stars 27 forks source link

Gina blame throw exception on empty file #278

Closed lambdalisue closed 4 years ago

lambdalisue commented 4 years ago

Procedure

git init
touch hoge.txt
git add hoge.txt
git commit -m "add hoge.txt"
vim hoge.txt
:Gina blame<CR>
<CR>

Error

Messages maintainer: Bram Moolenaar <Bram@vim.org>
"hoge.txt" 0L, 0B
Error detected while processing function <SNR>346__call_for_mapping[2]..<SNR>329_call[11]..function <SNR>346__call_for_mapping[2]..<SNR>329_call[4]..156[10]..151[4]..<SNR>330_get_candidates:
line    6:
E684: list index out of range: 0
E116: Invalid arguments for function s:translate_candidate(args.params.rev, chunks[v:val], revisions)