mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Fix :GBrowse with no argument
This commit is contained in:
@@ -5821,7 +5821,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
|
||||
else
|
||||
return 'echoerr ' . string('fugitive: use :0GBrowse instead of :GBrowse -')
|
||||
endif
|
||||
elseif len(arg) && !exists('l:remote')
|
||||
elseif !exists('l:remote')
|
||||
let remote = matchstr(arg, '@\zs\%('.validremote.'\)$')
|
||||
let rev = substitute(arg, '@\%('.validremote.'\)$','','')
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user