mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Reveal folds when using jump maps in commits
This commit is contained in:
committed by
Tim Pope
parent
35f1095f9b
commit
26f6037de6
@@ -2628,8 +2628,9 @@ function! s:Do(action, visual) abort
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
function! s:StageReveal(...) abort
|
||||
let begin = a:0 ? a:1 : line('.')
|
||||
function! s:StageReveal() abort
|
||||
exe 'normal! zv'
|
||||
let begin = line('.')
|
||||
if getline(begin) =~# '^@'
|
||||
let end = begin + 1
|
||||
while getline(end) =~# '^[ \+-]'
|
||||
|
||||
Reference in New Issue
Block a user