mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 13:03:45 -05:00
Enable . command to work with staging/reverting hunks.
This commit is contained in:
@@ -164,6 +164,8 @@ function! gitgutter#stage_hunk()
|
||||
|
||||
" refresh gitgutter's view of buffer
|
||||
silent execute "GitGutter"
|
||||
|
||||
silent! call repeat#set("\<Plug>GitGutterStageHunk", -1)<CR>
|
||||
endif
|
||||
endfunction
|
||||
|
||||
@@ -181,6 +183,8 @@ function! gitgutter#revert_hunk()
|
||||
|
||||
" reload file
|
||||
silent edit
|
||||
|
||||
silent! call repeat#set("\<Plug>GitGutterRevertHunk", -1)<CR>
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user