diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 3d1d5ef..e072d08 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -621,8 +621,8 @@ augroup fugitive autocmd! autocmd BufNewFile,BufReadPost * - \ call FugitiveDetect(expand(':p'), 0) - autocmd FileType netrw call FugitiveDetect(fnamemodify(get(b:, 'netrw_curdir', expand(':p')), ':p'), 1) + \ call FugitiveDetect(+expand(''), 0) + autocmd FileType netrw call FugitiveDetect(get(b:, 'netrw_curdir', +expand('')), 1) autocmd FileType git \ call fugitive#MapCfile()