motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit eb8eb1850a47671a8a3639feab8b2a50577e4913 (tree)
parent 933f6a1e1df549564062f936bd1c836d28cf1676
Author: Tim Pope <code@tpope.net>
Date:   Sun,  8 Feb 2015 22:31:37 -0500

Support for browsing with recent Vim

Closes #594.

Diffstat:
Mplugin/fugitive.vim | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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'