mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Use :redrawstatus rather than &ro = &ro
References: https://github.com/tpope/vim-fugitive/issues/1180
This commit is contained in:
@@ -4122,8 +4122,7 @@ function! s:DoAutocmdChanged(dir) abort
|
|||||||
exe s:DoAutocmd('User FugitiveChanged')
|
exe s:DoAutocmd('User FugitiveChanged')
|
||||||
finally
|
finally
|
||||||
unlet! g:fugitive_event g:fugitive_result
|
unlet! g:fugitive_event g:fugitive_result
|
||||||
" Force statusline reload with the buffer's Git dir
|
redrawstatus
|
||||||
let &ro = &ro
|
|
||||||
endtry
|
endtry
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user