From f53cda2845b535c3775caead990207d5c111e246 Mon Sep 17 00:00:00 2001 From: Ja-sonYun Date: Tue, 21 Oct 2025 20:21:58 +0900 Subject: [PATCH] call BrowseX with 1 arg for patch >= 9.1.1485 --- autoload/fugitive.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 7f2f60267..4504539cd 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7453,7 +7453,11 @@ function! s:BrowserOpen(url, mods, echo_copy) abort elseif exists('*netrw#os#Open') return 'echo '.string(url).'|' . mods . 'call netrw#os#Open('.string(url).')' elseif exists('*netrw#BrowseX') - return 'echo '.string(url).'|' . mods . 'call netrw#BrowseX('.string(url).', 0)' + if has('patch-9.1.1485') + return 'echo '.string(url).'|' . mods . 'call netrw#BrowseX('.string(url).')' + else + return 'echo '.string(url).'|' . mods . 'call netrw#BrowseX('.string(url).', 0)' + endif elseif exists('*netrw#NetrwBrowseX') return 'echo '.string(url).'|' . mods . 'call netrw#NetrwBrowseX('.string(url).', 0)' elseif has('nvim-0.10')