diff --git a/autoload/gitgutter/hunk.vim b/autoload/gitgutter/hunk.vim index a54b01c..8bf0100 100644 --- a/autoload/gitgutter/hunk.vim +++ b/autoload/gitgutter/hunk.vim @@ -328,6 +328,9 @@ function! s:undo(hunk_diff) call append(lnum-1, lines[0:hunk[1]]) execute (lnum+hunk[1]) .','. (lnum+hunk[1]+hunk[3]) .'d _' endif + + " Refresh gitgutter's view of buffer. + call gitgutter#process_buffer(bufnr(''), 1) endfunction