vim:funcs: Call timer_start instead of executing

Fix a small but stupid bug that the result of `timer_start` (i.e. the
timer ID) was evaluated as Ex command. This would lead to a jump to the
top of the file, every time the vimrc was reloaded (i.e. when a .vim is
saved).

Use `call` instead of `execute`, to fix this.
This commit is contained in:
2022-08-25 04:14:05 +02:00
parent 80b533d089
commit 64353b4ffa

View File

@@ -15,5 +15,5 @@ if (exists('+autoread') && &autoread)
" command line window
silent! checktime
endfunc
execute timer_start(1000, 'CheckTime', {'repeat': -1})
call timer_start(1000, 'CheckTime', {'repeat': -1})
endif