[Commits] Use FugitiveGenerate to get proper commit URL

Close #674
This commit is contained in:
Junegunn Choi 2018-07-22 17:04:28 +09:00
parent 8d56bdd6ad
commit 6ce58caad3
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -1075,7 +1075,7 @@ function! s:commits_sink(lines)
else
" Since fugitive buffers are unlisted, we can't keep using 'e'
let c = (cmd == 'e' && idx > 1) ? 'tab split' : cmd
execute c 'fugitive://'.s:git_root.'/.git//'.sha
execute c FugitiveGenerate(sha)
endif
endif
endfor