Fix U in status window

Must have fat fingered this at the last second.  I mean, I forgot the
<C-U>, but I most definitely did not forget the colon.
This commit is contained in:
Tim Pope
2021-08-20 18:48:59 -04:00
parent 7e53b2aef9
commit 46358f87e7

View File

@@ -2592,7 +2592,7 @@ function! fugitive#BufReadStatus() abort
call s:Map('x', 's', ":<C-U>execute <SID>Do('Stage',1)<CR>", '<silent>') call s:Map('x', 's', ":<C-U>execute <SID>Do('Stage',1)<CR>", '<silent>')
call s:Map('n', 'u', ":<C-U>execute <SID>Do('Unstage',0)<CR>", '<silent>') call s:Map('n', 'u', ":<C-U>execute <SID>Do('Unstage',0)<CR>", '<silent>')
call s:Map('x', 'u', ":<C-U>execute <SID>Do('Unstage',1)<CR>", '<silent>') call s:Map('x', 'u', ":<C-U>execute <SID>Do('Unstage',1)<CR>", '<silent>')
call s:Map('n', 'U', "Git --no-pager reset -q<CR>", '<silent>') call s:Map('n', 'U', ":<C-U>Git --no-pager reset -q<CR>", '<silent>')
call s:MapMotion('gu', "exe <SID>StageJump(v:count, 'Untracked', 'Unstaged')") call s:MapMotion('gu', "exe <SID>StageJump(v:count, 'Untracked', 'Unstaged')")
call s:MapMotion('gU', "exe <SID>StageJump(v:count, 'Unstaged', 'Untracked')") call s:MapMotion('gU', "exe <SID>StageJump(v:count, 'Unstaged', 'Untracked')")
call s:MapMotion('gs', "exe <SID>StageJump(v:count, 'Staged')") call s:MapMotion('gs', "exe <SID>StageJump(v:count, 'Staged')")