Fix bug where vim-gitgutter tried to run for non-files.

This commit is contained in:
Andy Stewart
2013-03-15 10:00:09 +01:00
parent c0d24ffa47
commit f52625be83

View File

@@ -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()
@@ -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
" }}}