mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Make consistent with GitGutterGetHunks()
This commit is contained in:
@@ -185,7 +185,8 @@ endfunction
|
||||
" window. The format is [ added, modified, removed ], where each value
|
||||
" represents the number of lines added/modified/removed respectively.
|
||||
function! GitGutterGetHunkSummary()
|
||||
return gitgutter#hunk#summary(winbufnr(0))
|
||||
let bufnr = bufnr('')
|
||||
return gitgutter#utility#is_active(bufnr) ? gitgutter#hunk#summary(bufnr) : []
|
||||
endfunction
|
||||
|
||||
" }}}
|
||||
|
||||
Reference in New Issue
Block a user