We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80c3fd7 commit ee39ef0Copy full SHA for ee39ef0
src/ex_cmds2.c
@@ -1143,10 +1143,11 @@ free_timer(timer_T *timer)
1143
create_timer(long msec, int repeat)
1144
{
1145
timer_T *timer = (timer_T *)alloc_clear(sizeof(timer_T));
1146
+ long prev_id = last_timer_id;
1147
1148
if (timer == NULL)
1149
return NULL;
- if (++last_timer_id < 0)
1150
+ if (++last_timer_id <= prev_id)
1151
/* Overflow! Might cause duplicates... */
1152
last_timer_id = 0;
1153
timer->tr_id = last_timer_id;
src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =
763
764
static int included_patches[] =
765
{ /* Add new patch number below this line */
766
+/**/
767
+ 2361,
768
/**/
769
2360,
770
0 commit comments