mirror of
https://github.com/amix/vimrc
synced 2025-06-29 19:34:59 +08:00
Forgot to check in the rest of the updated plugins :/
This commit is contained in:
@ -245,8 +245,10 @@ function! s:on_bufenter()
|
||||
" been any changes to the buffer since the first round, the second round
|
||||
" will be cheap.
|
||||
if has('vim_starting') && !$VIM_GITGUTTER_TEST
|
||||
if exists('*timer_start')
|
||||
call timer_start(&updatetime, 'GitGutterCursorHold')
|
||||
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
|
||||
@ -259,10 +261,6 @@ function! s:on_bufenter()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! GitGutterCursorHold(timer)
|
||||
execute 'doautocmd' s:nomodeline 'gitgutter CursorHold'
|
||||
endfunction
|
||||
|
||||
function! s:next_tick(cmd)
|
||||
call timer_start(1, {-> execute(a:cmd)})
|
||||
endfunction
|
||||
|
Reference in New Issue
Block a user