Fix calls to repeat#set: remove trailing "<CR>"

This commit is contained in:
Daniel Hahler
2019-03-06 14:17:55 +01:00
committed by Andy Stewart
parent 7201afe8d1
commit 8a4b9ccf52

View File

@@ -171,17 +171,17 @@ endfunction
function! gitgutter#hunk#stage() abort function! gitgutter#hunk#stage() abort
call s:hunk_op(function('s:stage')) call s:hunk_op(function('s:stage'))
silent! call repeat#set("\<Plug>GitGutterStageHunk", -1)<CR> silent! call repeat#set("\<Plug>GitGutterStageHunk", -1)
endfunction endfunction
function! gitgutter#hunk#undo() abort function! gitgutter#hunk#undo() abort
call s:hunk_op(function('s:undo')) call s:hunk_op(function('s:undo'))
silent! call repeat#set("\<Plug>GitGutterUndoHunk", -1)<CR> silent! call repeat#set("\<Plug>GitGutterUndoHunk", -1)
endfunction endfunction
function! gitgutter#hunk#preview() abort function! gitgutter#hunk#preview() abort
call s:hunk_op(function('s:preview')) call s:hunk_op(function('s:preview'))
silent! call repeat#set("\<Plug>GitGutterPreviewHunk", -1)<CR> silent! call repeat#set("\<Plug>GitGutterPreviewHunk", -1)
endfunction endfunction