mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
Fix bug where vim-gitgutter tried to run for non-files.
This commit is contained in:
@@ -60,7 +60,7 @@ function! s:file()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:exists_file()
|
function! s:exists_file()
|
||||||
return strlen(s:file()) > 0
|
return filereadable(s:file())
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:directory_of_file()
|
function! s:directory_of_file()
|
||||||
@@ -99,7 +99,7 @@ function! s:snake_case_to_camel_case(text)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:buffers()
|
function! s:buffers()
|
||||||
return range(1, bufnr('$'))
|
return filter(range(1, bufnr('$')), 'buflisted(v:val)')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|||||||
Reference in New Issue
Block a user