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 2ef9d9a74841081600cd4f9740d9bcfea39143ee (tree)
parent ce58344c9ef9a1b6ad267e9477ef6ac21304e43e
Author: Tim Pope <code@tpope.net>
Date:   Sat,  3 Apr 2021 21:04:29 -0400

Use :echo not :echomsg for displaying :GBrowse URL

Logging the URL permanently to :messages was a mistake.

Diffstat:
Mautoload/fugitive.vim | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -6264,19 +6264,19 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo if has('clipboard') let @+ = url endif - return 'echomsg '.string(url) + return 'echo '.string(url) elseif exists(':Browse') == 2 - return 'echomsg '.string(url).'|Browse '.url + return 'echo '.string(url).'|Browse '.url elseif exists(':OpenBrowser') == 2 - return 'echomsg '.string(url).'|OpenBrowser '.url + return 'echo '.string(url).'|OpenBrowser '.url else if !exists('g:loaded_netrw') runtime! autoload/netrw.vim endif if exists('*netrw#BrowseX') - return 'echomsg '.string(url).'|call netrw#BrowseX('.string(url).', 0)' + return 'echo '.string(url).'|call netrw#BrowseX('.string(url).', 0)' elseif exists('*netrw#NetrwBrowseX') - return 'echomsg '.string(url).'|call netrw#NetrwBrowseX('.string(url).', 0)' + return 'echo '.string(url).'|call netrw#NetrwBrowseX('.string(url).', 0)' else return 'echoerr ' . string('Netrw not found. Define your own :Browse to use :GBrowse') endif