From 6f380fa8c6daf301fc5e8a5d650c54be24e5b2c9 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 20 Nov 2012 17:57:37 -0500 Subject: [PATCH] Fix error when g:fugitive_github_domains is unset Closes #274. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 67b3bf5..c9b0196 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1878,7 +1878,7 @@ function! s:github_url(repo,url,rev,commit,path,type,line1,line2) abort if repo ==# '' return '' endif - if index(g:fugitive_github_domains, 'http://' . matchstr(repo, '^[^:/]*')) >= 0 + if index(domains, 'http://' . matchstr(repo, '^[^:/]*')) >= 0 let root = 'http://' . s:sub(repo,':','/') else let root = 'https://' . s:sub(repo,':','/')