Make statusline redraw less aggressive

Mainly trying to avoid tainting `:verbose set readonly?`.
This commit is contained in:
Tim Pope
2022-06-13 13:44:21 -04:00
parent 9b50074e44
commit 2febbe1f00

View File

@@ -4214,7 +4214,9 @@ function! s:DoAutocmdChanged(dir) abort
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 " Force statusline reload with the buffer's Git dir
if dir isnot# FugitiveGitDir()
let &l:ro = &l:ro let &l:ro = &l:ro
endif
endtry endtry
return '' return ''
endfunction endfunction