diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 65e6665..b61e49c 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2225,7 +2225,11 @@ function! s:Browse(bang,line1,count,...) abort elseif exists(':Browse') == 2 return 'echomsg '.string(url).'|Browse '.url else - return 'echomsg '.string(url).'|call netrw#NetrwBrowseX('.string(url).', 0)' + if has("patch-7.4.567") + return 'echomsg '.string(url).'|call netrw#BrowseX('.string(url).', 0)' + else + return 'echomsg '.string(url).'|call netrw#NetrwBrowseX('.string(url).', 0)' + endif endif catch /^fugitive:/ return 'echoerr v:errmsg'