mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Collapse all status buffer diffs on :edit!
References: https://github.com/tpope/vim-fugitive/issues/1563
This commit is contained in:
@@ -2752,6 +2752,9 @@ function! fugitive#BufReadStatus() abort
|
||||
\ s:LinesError(['diff', '--color=never', '--no-ext-diff', '--no-prefix'])[0]
|
||||
endif
|
||||
let b:fugitive_diff = diff
|
||||
if v:cmdbang
|
||||
unlet! b:fugitive_expanded
|
||||
endif
|
||||
let expanded = get(b:, 'fugitive_expanded', {'Staged': {}, 'Unstaged': {}})
|
||||
let b:fugitive_expanded = {'Staged': {}, 'Unstaged': {}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user