fix missing if detecting buffer fugitive type

This commit is contained in:
Pablo Bender
2019-01-15 09:55:31 -03:00
parent c788d2efd2
commit c0a97ff895

View File

@@ -3,7 +3,7 @@
" parent directory. Heres 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 <buffer> .. :edit %:h<CR> |
\ endif