From 46eaf8918b347906789df296143117774e827616 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 29 Oct 2023 13:00:04 -0400 Subject: [PATCH] Fix variable scope --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index d5f8cc6..655c174 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -6113,7 +6113,7 @@ function! s:OpenExpand(dir, file, wants_cmd) abort let efile = s:Expand(a:file) endif if efile =~# '^https\=://' - let [url, lnum] = s:ResolveUrl(efile, dir) + let [url, lnum] = s:ResolveUrl(efile, a:dir) return [url, a:wants_cmd ? lnum : 0] endif let url = s:Generate(efile, a:dir)