diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 381e9c0..aebbfb5 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2222,6 +2222,9 @@ function! s:Browse(bang,line1,count,...) abort else let expanded = s:buffer().expand(rev) endif + if filereadable(s:repo().tree('refs/tags/' . expanded)) + let expanded = 'refs/tags/' . expanded + endif let full = s:repo().translate(expanded) let commit = '' if full =~? '^fugitive:'