fix missing if detecting buffer fugitive type
This commit is contained in:
@@ -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 <buffer> .. :edit %:h<CR> |
|
||||
\ endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user