patch 9.0.1330: handling new value of an option has a long "else if" chain
Problem: Handling new value of an option has a long "else if" chain. Solution: Use a function pointer. (Yegappan Lakshmanan, closes #12015)
This commit is contained in:
committed by
Bram Moolenaar
parent
997b8a015c
commit
af93691b53
@ -886,13 +886,15 @@ remove_timer(void)
|
||||
timer_id = 0;
|
||||
}
|
||||
|
||||
void
|
||||
mzvim_reset_timer(void)
|
||||
char *
|
||||
did_set_mzquantum(void)
|
||||
{
|
||||
// reset timer
|
||||
if (timer_id != 0)
|
||||
remove_timer();
|
||||
if (mz_threads_allow && p_mzq > 0 && gui.in_use)
|
||||
setup_timer();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif // MZSCHEME_GUI_THREADS
|
||||
|
||||
Reference in New Issue
Block a user