mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 04:54:52 +08:00
Don't expand # in :GBrowse http://example.com/#anchor
This commit is contained in:
@@ -3611,6 +3611,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:StageDelete(lnum1, lnum2, count) abort
|
function! s:StageDelete(lnum1, lnum2, count) abort
|
||||||
let restore = []
|
let restore = []
|
||||||
|
|
||||||
let err = ''
|
let err = ''
|
||||||
let did_conflict_err = 0
|
let did_conflict_err = 0
|
||||||
try
|
try
|
||||||
@@ -5734,6 +5735,8 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
|
|||||||
endif
|
endif
|
||||||
if rev =~# '^:\=$'
|
if rev =~# '^:\=$'
|
||||||
let expanded = s:Relative()
|
let expanded = s:Relative()
|
||||||
|
elseif rev =~? '^\a\a\+:[\/][\/]' && rev !~? '^fugitive:'
|
||||||
|
let expanded = s:Expand(substitute(rev, '\\\@<!#\|\\\@<!%\ze\w', '\\&', 'g'))
|
||||||
else
|
else
|
||||||
let expanded = s:Expand(rev)
|
let expanded = s:Expand(rev)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user