From 64353b4ffac1a764f854779c48e9aa1ea322e912 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 25 Aug 2022 04:14:05 +0200 Subject: [PATCH] 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. --- .config/vim/vimrc.d/70-functions.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/vim/vimrc.d/70-functions.vim b/.config/vim/vimrc.d/70-functions.vim index b5b8405..fc7579e 100644 --- a/.config/vim/vimrc.d/70-functions.vim +++ b/.config/vim/vimrc.d/70-functions.vim @@ -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