From c0a97ff89560335888adc787e2204659c01fa2f9 Mon Sep 17 00:00:00 2001 From: Pablo Bender Date: Tue, 15 Jan 2019 09:55:31 -0300 Subject: [PATCH] fix missing if detecting buffer fugitive type --- vim/settings/vim-fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/settings/vim-fugitive.vim b/vim/settings/vim-fugitive.vim index acb69f22..04d50730 100644 --- a/vim/settings/vim-fugitive.vim +++ b/vim/settings/vim-fugitive.vim @@ -3,7 +3,7 @@ " parent directory. Here’s a mapping of .. to the above command, but " only for buffers containing a git blob or tree autocmd User fugitive - \ get(b:, 'fugitive_type', '') =~# '^\%(tree\|blob\)$' | + \ if get(b:, 'fugitive_type', '') =~# '^\%(tree\|blob\)$' | \ nnoremap .. :edit %:h | \ endif