mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Ensure older vims process buffer at startup
In this context older vims are those without timer_start() and lambda. The plugin always used to process the buffer at startup. Then in #734 an optimisation was introduced to defer processing at startup, to keep vim's startup fast. However in this optimisation older vim's unintentionally lost their startup processing altogether.
This commit is contained in:
@@ -247,6 +247,8 @@ function! s:on_bufenter()
|
||||
if has('vim_starting') && !$VIM_GITGUTTER_TEST
|
||||
if exists('*timer_start') && has('lambda')
|
||||
call s:next_tick("call gitgutter#process_buffer(+".bufnr('').", 0)")
|
||||
else
|
||||
call gitgutter#process_buffer(bufnr(''), 0)
|
||||
endif
|
||||
return
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user