From 68c7df4e2afb8ec1baef9bbc5bc06e33a12b5d86 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 18 Oct 2009 22:43:08 -0400 Subject: [PATCH] Guard against a count in all maps --- plugin/fugitive.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 75070b3..bf75fd7 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -831,8 +831,8 @@ function! s:Blame(bang,line1,line2,count) abort execute current execute "vertical resize ".(match(getline('.'),'\s\+\d\+)')+1) setlocal nomodified nomodifiable nonumber scrollbind nowrap foldcolumn=0 nofoldenable filetype=fugitiveblame - nnoremap q :bdelete - nnoremap :exe BlameJump() + nnoremap q :bdelete + nnoremap :exe BlameJump() nnoremap o :exe Edit((&splitbelow ? "botright" : "topleft")." split", matchstr(getline('.'),'\x\+')) nnoremap O :exe Edit("tabedit", matchstr(getline('.'),'\x\+')) syncbind @@ -1044,8 +1044,8 @@ function! s:BufReadObject() setlocal ro noma nomod nomodeline if b:fugitive_type !=# 'blob' set filetype=git - nnoremap a :let b:fugitive_display_format += 1exe BufReadObject() - nnoremap i :let b:fugitive_display_format -= 1exe BufReadObject() + nnoremap a :let b:fugitive_display_format += v:count1exe BufReadObject() + nnoremap i :let b:fugitive_display_format -= v:count1exe BufReadObject() else call s:JumpInit() endif