mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Make statusline redraw less aggressive
Mainly trying to avoid tainting `:verbose set readonly?`.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user