From 666c4abc1299ef2a8975f58e37534fafe599b670 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 27 Feb 2019 23:27:00 -0500 Subject: [PATCH] Brute force mapping jumps This is supposed to happen on FileType git, but depending on autocommand order, exists('b:git_dir') might erroneously fail. --- autoload/fugitive.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index ab0695a..b6292ae 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1751,9 +1751,8 @@ function! fugitive#BufReadCmd(...) abort setlocal filetype=git foldmethod=syntax nnoremap a :let b:fugitive_display_format += v:count1exe fugitive#BufReadCmd(@%) nnoremap i :let b:fugitive_display_format -= v:count1exe fugitive#BufReadCmd(@%) - else - call fugitive#MapJumps() endif + call fugitive#MapJumps() endtry setlocal modifiable