Adjust viewport position *after* reload
References https://github.com/tpope/vim-fugitive/issues/1268
This commit is contained in:
parent
9c195de61b
commit
c8ac43422e
@ -2278,13 +2278,16 @@ function! s:Do(action, visual) abort
|
|||||||
if status < 0
|
if status < 0
|
||||||
execute record.lnum + 1
|
execute record.lnum + 1
|
||||||
endif
|
endif
|
||||||
call s:StageReveal()
|
let success = 1
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
return 'echoerr v:errmsg'
|
return 'echoerr v:errmsg'
|
||||||
finally
|
finally
|
||||||
if reload
|
if reload
|
||||||
execute s:ReloadStatus()
|
execute s:ReloadStatus()
|
||||||
endif
|
endif
|
||||||
|
if exists('success')
|
||||||
|
call s:StageReveal()
|
||||||
|
endif
|
||||||
endtry
|
endtry
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user