Merge pull request #812 from pablobender/fix-vim-fugitive
fix missing if detecting fugitive buffer type
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
" parent directory. Here’s a mapping of .. to the above command, but
|
" parent directory. Here’s 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user