Replace call to deprecated function
This commit is contained in:
@@ -3,12 +3,12 @@
|
|||||||
" 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
|
||||||
\ if fugitive#buffer().type() =~# '^\%(tree\|blob\)$' |
|
\ get(b:, 'fugitive_type', '') =~# '^\%(tree\|blob\)$' |
|
||||||
\ nnoremap <buffer> .. :edit %:h<CR> |
|
\ nnoremap <buffer> .. :edit %:h<CR> |
|
||||||
\ endif
|
\ endif
|
||||||
|
|
||||||
" Every time you open a git object using fugitive it creates a new buffer.
|
" Every time you open a git object using fugitive it creates a new buffer.
|
||||||
" This means that your buffer listing can quickly become swamped with
|
" This means that your buffer listing can quickly become swamped with
|
||||||
" fugitive buffers. This prevents this from becomming an issue:
|
" fugitive buffers. This prevents this from becomming an issue:
|
||||||
|
|
||||||
autocmd BufReadPost fugitive://* set bufhidden=delete
|
autocmd BufReadPost fugitive://* set bufhidden=delete
|
||||||
|
|||||||
Reference in New Issue
Block a user