From 6ad15506ccec939b75c79cf5fc177efe6b730c62 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 26 Oct 2021 09:22:04 -0400 Subject: [PATCH] Use :redrawstatus rather than &ro = &ro References: https://github.com/tpope/vim-fugitive/issues/1180 --- autoload/fugitive.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index c3a3dc8..a607750 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4122,8 +4122,7 @@ function! s:DoAutocmdChanged(dir) abort exe s:DoAutocmd('User FugitiveChanged') finally unlet! g:fugitive_event g:fugitive_result - " Force statusline reload with the buffer's Git dir - let &ro = &ro + redrawstatus endtry return '' endfunction