From 5d1c219ee5e26f518d9a29c575522e81fbd0f762 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 17 Jul 2014 21:05:03 -0400 Subject: [PATCH] Fix load order issue --- plugin/fugitive.vim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8a031b0..60e6c03 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2097,13 +2097,6 @@ endfunction call s:command("-bar -bang -range -nargs=* -complete=customlist,s:EditComplete Gbrowse :execute s:Browse(0,,,)") -if !exists('g:fugitive_experimental_browse_handlers') - let g:fugitive_experimental_browse_handlers = [] -endif - -call extend(g:fugitive_experimental_browse_handlers, - \ [s:function('s:github_url'), s:function('s:instaweb_url')]) - function! s:Browse(bang,line1,count,...) abort try let rev = a:0 ? substitute(join(a:000, ' '),'@[[:alnum:]_-]*\%(://.\{-\}\)\=$','','') : '' @@ -2306,6 +2299,13 @@ function! s:instaweb_url(repo,rev,commit,path,type,...) abort return url endfunction +if !exists('g:fugitive_experimental_browse_handlers') + let g:fugitive_experimental_browse_handlers = [] +endif + +call extend(g:fugitive_experimental_browse_handlers, + \ [s:function('s:github_url'), s:function('s:instaweb_url')]) + " Section: File access function! s:ReplaceCmd(cmd,...) abort