From 4fe6e46a0ace8196aa1946b91cd02e853f8db9da Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 11 Apr 2012 16:41:43 -0400 Subject: [PATCH] Fix detection of netrw buffers How long has this been broken? --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 7f426bf..1c14312 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -161,7 +161,7 @@ endfunction augroup fugitive autocmd! autocmd BufNewFile,BufReadPost * call s:Detect(expand(':p')) - autocmd FileType netrw call s:Detect(expand(':p')) + autocmd FileType netrw call s:Detect(expand('%:p')) autocmd User NERDTreeInit,NERDTreeNewRoot call s:Detect(b:NERDTreeRoot.path.str()) autocmd VimEnter * if expand('')==''|call s:Detect(getcwd())|endif autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('')), 'fugitive_leave')