From 66a927524a131ae9b68dffc818ab9d9dc48f166c Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 25 Jun 2019 04:02:02 -0400 Subject: [PATCH] Don't map in editable index buffers --- autoload/fugitive.vim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index bbe5064..f16ad73 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4306,13 +4306,13 @@ function! s:NavigateUp(count) abort endfunction function! fugitive#MapJumps(...) abort - if get(b:, 'fugitive_type', '') ==# 'blob' - nnoremap :.Gblame - else - nnoremap :exe GF("edit") - endif if !&modifiable let nowait = v:version >= 704 ? '' : '' + if get(b:, 'fugitive_type', '') ==# 'blob' + nnoremap :.Gblame + else + nnoremap :exe GF("edit") + endif if get(b:, 'fugitive_type', '') ==# 'blob' nnoremap o :.,.+1Gblame nnoremap S :echoerr 'Use gO'