comparison src/ex_cmds2.c @ 9179:5e18efdad322 v7.4.1873

commit https://github.com/vim/vim/commit/4231da403e3c879dd6ac261e51f4ca60813935e3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 2 14:30:04 2016 +0200 patch 7.4.1873 Problem: When a callback adds a timer the GUI doesn't use it until later. (Ramel Eshed) Solution: Return early if a callback adds a timer.
author Christian Brabandt <cb@256bit.org>
date Thu, 02 Jun 2016 14:30:08 +0200
parents e4d7e6d1a0f1
children 9f97a6290c63
comparison
equal deleted inserted replaced
9178:4f47bb74ecb7 9179:5e18efdad322
1099 timer->tr_next = first_timer; 1099 timer->tr_next = first_timer;
1100 timer->tr_prev = NULL; 1100 timer->tr_prev = NULL;
1101 if (first_timer != NULL) 1101 if (first_timer != NULL)
1102 first_timer->tr_prev = timer; 1102 first_timer->tr_prev = timer;
1103 first_timer = timer; 1103 first_timer = timer;
1104 did_add_timer = TRUE;
1104 } 1105 }
1105 1106
1106 /* 1107 /*
1107 * Take a timer out of the list of timers. 1108 * Take a timer out of the list of timers.
1108 */ 1109 */