Merge pull request #811 from abohne/fugitive_type_fix

Replace call to deprecated fugitive function
This commit is contained in:
Luiz Gonzaga dos Santos Filho
2019-01-14 21:21:54 -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
\ if fugitive#buffer().type() =~# '^\%(tree\|blob\)$' | \ get(b:, 'fugitive_type', '') =~# '^\%(tree\|blob\)$' |
\ nnoremap <buffer> .. :edit %:h<CR> | \ nnoremap <buffer> .. :edit %:h<CR> |
\ endif \ endif