From 0858688120954e778c56e86e568550f87fa84a68 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 18 Mar 2021 17:03:39 -0400 Subject: [PATCH] Don't expand # in :GBrowse http://example.com/#anchor --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index fa7f3ad..e1bd5cd 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -3611,6 +3611,7 @@ endfunction function! s:StageDelete(lnum1, lnum2, count) abort let restore = [] + let err = '' let did_conflict_err = 0 try @@ -5734,6 +5735,8 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo endif if rev =~# '^:\=$' let expanded = s:Relative() + elseif rev =~? '^\a\a\+:[\/][\/]' && rev !~? '^fugitive:' + let expanded = s:Expand(substitute(rev, '\\\@