mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-09 21:46:47 +08:00
@@ -2224,9 +2224,13 @@ function! s:Browse(bang,line1,count,...) abort
|
|||||||
return 'echomsg '.string(url)
|
return 'echomsg '.string(url)
|
||||||
elseif exists(':Browse') == 2
|
elseif exists(':Browse') == 2
|
||||||
return 'echomsg '.string(url).'|Browse '.url
|
return 'echomsg '.string(url).'|Browse '.url
|
||||||
|
else
|
||||||
|
if has("patch-7.4.567")
|
||||||
|
return 'echomsg '.string(url).'|call netrw#BrowseX('.string(url).', 0)'
|
||||||
else
|
else
|
||||||
return 'echomsg '.string(url).'|call netrw#NetrwBrowseX('.string(url).', 0)'
|
return 'echomsg '.string(url).'|call netrw#NetrwBrowseX('.string(url).', 0)'
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
return 'echoerr v:errmsg'
|
return 'echoerr v:errmsg'
|
||||||
endtry
|
endtry
|
||||||
|
|||||||
Reference in New Issue
Block a user