mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-15 10:32:46 +08:00
Fix :GBrowse with no argument
This commit is contained in:
1 parent
156dbcd738
commit
9103a738c7
1 file changed
+1
-1
@@ -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