Skip to content

Commit

Permalink
Check that buffer is opened on a file.
Browse files Browse the repository at this point in the history
  • Loading branch information
int3 committed Mar 1, 2011
1 parent 82f0672 commit 187fc70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/extradite.vim
Expand Up @@ -19,7 +19,7 @@ let g:extradite_bufnr = -1

function! s:Extradite(bang) abort

if !exists('b:git_dir')
if fugitive#buffer().path() == ''
echo 'Current buffer is not under git version control.'
return
endif
Expand Down

0 comments on commit 187fc70

Please sign in to comment.