From 8a7d00590b63e8479e57e0dd472a4ff4fbf01748 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 12 Feb 2018 16:42:20 +0000 Subject: [PATCH] Restore support for vim-repeat in hunk ops. --- autoload/gitgutter/hunk.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/gitgutter/hunk.vim b/autoload/gitgutter/hunk.vim index 31e500b..ac8e327 100644 --- a/autoload/gitgutter/hunk.vim +++ b/autoload/gitgutter/hunk.vim @@ -132,14 +132,17 @@ endfunction function! gitgutter#hunk#stage() abort call s:hunk_op(function('s:stage')) + silent! call repeat#set("\GitGutterStageHunk", -1) endfunction function! gitgutter#hunk#undo() abort call s:hunk_op(function('s:undo')) + silent! call repeat#set("\GitGutterUndoHunk", -1) endfunction function! gitgutter#hunk#preview() abort call s:hunk_op(function('s:preview')) + silent! call repeat#set("\GitGutterPreviewHunk", -1) endfunction