Merge pull request #812 from pablobender/fix-vim-fugitive

fix missing if detecting fugitive buffer type
This commit is contained in:
Luiz Gonzaga dos Santos Filho
2019-01-15 07:29:15 -08:00
committed by GitHub

View File

@@ -3,7 +3,7 @@
" parent directory. Heres a mapping of .. to the above command, but " parent directory. Heres a mapping of .. to the above command, but
" only for buffers containing a git blob or tree " only for buffers containing a git blob or tree
autocmd User fugitive autocmd User fugitive
\ get(b:, 'fugitive_type', '') =~# '^\%(tree\|blob\)$' | \ if get(b:, 'fugitive_type', '') =~# '^\%(tree\|blob\)$' |
\ nnoremap <buffer> .. :edit %:h<CR> | \ nnoremap <buffer> .. :edit %:h<CR> |
\ endif \ endif