Skip to content

Commit

Permalink
Fix detection of netrw buffers
Browse files Browse the repository at this point in the history
How long has this been broken?
  • Loading branch information
tpope committed Apr 11, 2012
1 parent 9bfb785 commit 4fe6e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/fugitive.vim
Expand Up @@ -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')
Expand Down

0 comments on commit 4fe6e46

Please sign in to comment.