Skip to content

Commit

Permalink
Fix bug where vim-gitgutter tried to run for non-files.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Mar 15, 2013
1 parent c0d24ff commit f52625b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/gitgutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function! s:file()
endfunction

function! s:exists_file()
return strlen(s:file()) > 0
return filereadable(s:file())
endfunction

function! s:directory_of_file()
Expand Down Expand Up @@ -99,7 +99,7 @@ function! s:snake_case_to_camel_case(text)
endfunction

function! s:buffers()
return range(1, bufnr('$'))
return filter(range(1, bufnr('$')), 'buflisted(v:val)')
endfunction

" }}}
Expand Down

0 comments on commit f52625b

Please sign in to comment.