Relocate 'path' adjustment

I'm not sure where we should do this (if at all), but after loading the
appropriate buffer (and thus applying the file type) is a better place
than during general activation.
This commit is contained in:
Tim Pope
2019-09-03 23:45:54 -04:00
parent 2eb6aac0c4
commit 99ad1a89fa
2 changed files with 4 additions and 4 deletions

View File

@@ -5847,9 +5847,6 @@ function! fugitive#Init() abort
call s:Map('c', '<C-R><C-G>', '<SID>fnameescape(fugitive#Object(@%))', '<expr>')
call s:Map('n', 'y<C-G>', ':<C-U>call setreg(v:register, fugitive#Object(@%))<CR>', '<silent>')
endif
if expand('%:p') =~# ':[\/][\/]'
let &l:path = s:sub(&path, '^\.%(,|$)', '')
endif
let dir = s:Dir()
if stridx(&tags, escape(dir, ', ')) == -1 && &tags !~# '\.git' && !exists('s:tags_warning')
let actualdir = fugitive#Find('.git/', dir)