vim: Keep only one timer for checktime
Every time the file was sourced, a new timer was created.
This commit is contained in:
@@ -7,5 +7,7 @@ if (exists('+autoread') && &autoread)
|
|||||||
" command line window
|
" command line window
|
||||||
silent! checktime
|
silent! checktime
|
||||||
endfunc
|
endfunc
|
||||||
call timer_start(1000, 'CheckTime', {'repeat': -1})
|
if (!exists('g:checktime_timer'))
|
||||||
|
let g:checktime_timer = timer_start(1000, 'CheckTime', {'repeat': -1})
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user