From 805c0bbdd9d3a5ca74d579cda3a999a3657c4498 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 18 Jul 2018 19:46:15 -0400 Subject: [PATCH] Fix i and a in :Gstatus This is a stupid feature that needs to be ripped out. --- autoload/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b191a98..57f7903 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2753,8 +2753,8 @@ function! fugitive#BufReadStatus() abort nnoremap :execute StagePrevious(v:count1) nnoremap - :silent execute StageToggle(line('.'),line('.')+v:count1-1) xnoremap - :silent execute StageToggle(line("'<"),line("'>")) - nnoremap a :let b:fugitive_display_format += 1exe fugitive#BufReadIndex() - nnoremap i :let b:fugitive_display_format -= 1exe fugitive#BufReadIndex() + nnoremap a :let b:fugitive_display_format += 1exe fugitive#BufReadStatus() + nnoremap i :let b:fugitive_display_format -= 1exe fugitive#BufReadStatus() nnoremap C :Gcommit:echohl WarningMsgecho ':Gstatus C is deprecated in favor of cc'echohl NONE nnoremap cA :Gcommit --amend --reuse-message=HEAD:echohl WarningMsgecho ':Gstatus cA is deprecated in favor of ce'echohl NONE nnoremap ca :Gcommit --amend