Ensure hunk summary is updated during a hunk op

Fixes #765.
This commit is contained in:
Andy Stewart
2021-02-16 16:04:47 +00:00
parent 2e3cd54ed6
commit 6019d43860

View File

@@ -257,6 +257,7 @@ function! s:hunk_op(op, ...)
let g:gitgutter_async = async
call gitgutter#hunk#set_hunks(bufnr, gitgutter#diff#parse_diff(diff))
call gitgutter#diff#process_hunks(bufnr, gitgutter#hunk#hunks(bufnr)) " so the hunk summary is updated
if empty(s:current_hunk())
call gitgutter#utility#warn('cursor is not in a hunk')