Skip to content

Commit

Permalink
Don't activate maps without b:git_dir
Browse files Browse the repository at this point in the history
Closes #227.
  • Loading branch information
tpope committed Jul 15, 2012
1 parent 585ca69 commit ca6d4ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/fugitive.vim
Expand Up @@ -2175,7 +2175,10 @@ augroup fugitive_files
autocmd BufWriteCmd fugitive://**//[0-3]/** exe s:BufWriteIndexFile()
autocmd BufReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:BufReadObject()
autocmd FileReadCmd fugitive://**//[0-9a-f][0-9a-f]* exe s:FileRead()
autocmd FileType git call s:JumpInit()
autocmd FileType git
\ if exists('b:git_dir') |
\ call s:JumpInit() |
\ endif
augroup END

" }}}1
Expand Down

0 comments on commit ca6d4ca

Please sign in to comment.