Merge pull request #71 from rasmusto/fugitive-integration

handle "fugitive:.*" file in s:repl.includes_file
This commit is contained in:
Tim Pope 2013-08-01 21:50:34 -07:00
commit 8f925c9342

View File

@ -155,6 +155,7 @@ endfunction
function! s:repl.includes_file(file) dict abort
let file = substitute(a:file, '\C^zipfile:\(.*\)::', '\1/', '')
let file = substitute(file, '\C^fugitive:[\/][\/]\(.*\)\.git[\/][\/][^\/]\+[\/]', '\1', '')
for path in self.path()
if file[0 : len(path)-1] ==? path
return 1