Ensure GitGutterGetHunks() always returns a 3 element list

Thanks to @sebastianmarkow for pointing this out.
This commit is contained in:
Andy Stewart
2021-02-16 18:03:04 +00:00
parent da77e46310
commit b90aad666a

View File

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