mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-16 11:01:33 +08:00
Ensure open folds after expanding inline diff
This commit is contained in:
1 parent
e3b7cce2e6
commit
776ce315c4
1 file changed
+3
@@ -3485,6 +3485,9 @@ function! s:StageInline(mode, ...) abort
|
||||
if len(diff)
|
||||
setlocal modifiable noreadonly
|
||||
silent call append(lnum, diff)
|
||||
if foldclosed(lnum+1)
|
||||
silent exe (lnum+1) . ',' . (lnum+len(diff)) . 'foldopen!'
|
||||
endif
|
||||
let b:fugitive_expanded[info.section][info.filename] = [start, len(diff)]
|
||||
setlocal nomodifiable readonly nomodified
|
||||
endif
|
||||
|
||||
Reference in new issue
Block a user