We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32080ba + e40d75f commit 2375f35Copy full SHA for 2375f35
2 files changed
src/eval.c
@@ -20760,8 +20760,14 @@ f_timer_start(typval_T *argvars, typval_T *rettv)
20760
static void
20761
f_timer_stop(typval_T *argvars, typval_T *rettv UNUSED)
20762
{
20763
- timer_T *timer = find_timer(get_tv_number(&argvars[0]));
+ timer_T *timer;
20764
20765
+ if (argvars[0].v_type != VAR_NUMBER)
20766
+ {
20767
+ EMSG(_(e_number_exp));
20768
+ return;
20769
+ }
20770
+ timer = find_timer(get_tv_number(&argvars[0]));
20771
if (timer != NULL)
20772
stop_timer(timer);
20773
}
src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
768
769
static int included_patches[] =
770
{ /* Add new patch number below this line */
771
+/**/
772
+ 1831,
773
/**/
774
1830,
775
0 commit comments