Fix focus bug on reloading multiple :Gstatus buffers

This commit is contained in:
Tim Pope 2018-12-31 00:58:38 -05:00
parent 08179e1860
commit b9825af3dc

View File

@ -1849,6 +1849,7 @@ function! fugitive#ReloadStatus(...) abort
endif endif
finally finally
if exists('restorewinnr') if exists('restorewinnr')
unlet restorewinnr
wincmd p wincmd p
endif endif
execute 'tabnext '.mytab execute 'tabnext '.mytab