From 5699f4613cab9d5cc316a42668e1fd7f2480e970 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 6 Nov 2014 13:47:26 -0500 Subject: [PATCH] Fix instaweb support Closes #571. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8fabd1c..2d9816b 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2274,7 +2274,7 @@ endfunction function! s:instaweb_url(opts) abort let output = a:opts.repo.git_chomp('instaweb','-b','unknown') if output =~# 'http://' - let root = matchstr(output,'http://.*').'/?p='.fnamemodify(a:opts.repo.opts.dir(),':t') + let root = matchstr(output,'http://.*').'/?p='.fnamemodify(a:opts.repo.dir(),':t') else return '' endif