mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Ensure GitGutterGetHunks() always returns a 3 element list
Thanks to @sebastianmarkow for pointing this out.
This commit is contained in:
@@ -186,7 +186,7 @@ endfunction
|
|||||||
" represents the number of lines added/modified/removed respectively.
|
" represents the number of lines added/modified/removed respectively.
|
||||||
function! GitGutterGetHunkSummary()
|
function! GitGutterGetHunkSummary()
|
||||||
let bufnr = bufnr('')
|
let bufnr = bufnr('')
|
||||||
return gitgutter#utility#is_active(bufnr) ? gitgutter#hunk#summary(bufnr) : []
|
return gitgutter#utility#is_active(bufnr) ? gitgutter#hunk#summary(bufnr) : [0,0,0]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|||||||
Reference in New Issue
Block a user