Make hunk summary window-aware.

Closes #331.
This commit is contained in:
Andy Stewart
2016-05-16 12:21:06 +01:00
parent ef6fd3a986
commit 9db8f638db
2 changed files with 15 additions and 12 deletions

View File

@@ -123,11 +123,11 @@ function! GitGutterGetHunks()
return gitgutter#utility#is_active() ? gitgutter#hunk#hunks() : []
endfunction
" Returns an array that contains a summary of the current hunk status.
" The format is [ added, modified, removed ], where each value represents
" the number of lines added/modified/removed respectively.
" Returns an array that contains a summary of the hunk status for the current
" 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()
return gitgutter#hunk#summary(winbufnr(0))
endfunction
" }}}