Browse files

Fix detection of netrw buffers

How long has this been broken?
  • Loading branch information...
1 parent 9bfb785 commit 4fe6e46a0ace8196aa1946b91cd02e853f8db9da @tpope tpope committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/fugitive.vim
View
2 plugin/fugitive.vim
@@ -161,7 +161,7 @@ endfunction
augroup fugitive
autocmd!
autocmd BufNewFile,BufReadPost * call s:Detect(expand('<amatch>:p'))
- autocmd FileType netrw call s:Detect(expand('<afile>:p'))
+ autocmd FileType netrw call s:Detect(expand('%:p'))
autocmd User NERDTreeInit,NERDTreeNewRoot call s:Detect(b:NERDTreeRoot.path.str())
autocmd VimEnter * if expand('<amatch>')==''|call s:Detect(getcwd())|endif
autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('<abuf>')), 'fugitive_leave')

0 comments on commit 4fe6e46

Please sign in to comment.