comparison src/if_mzsch.c @ 31996:ca6bc7c04163 v9.0.1330

patch 9.0.1330: handling new value of an option has a long "else if" chain Commit: https://github.com/vim/vim/commit/af93691b53f38784efce0b93fe7644c44a7e382e Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Feb 20 12:16:39 2023 +0000 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 https://github.com/vim/vim/issues/12015)
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Feb 2023 13:30:05 +0100
parents 27c9212d10aa
children 274e1b3fbc2a
comparison
equal deleted inserted replaced
31995:95971aa5e525 31996:ca6bc7c04163
884 XtRemoveTimeOut(timer_id); 884 XtRemoveTimeOut(timer_id);
885 # endif 885 # endif
886 timer_id = 0; 886 timer_id = 0;
887 } 887 }
888 888
889 void 889 char *
890 mzvim_reset_timer(void) 890 did_set_mzquantum(void)
891 { 891 {
892 // reset timer
892 if (timer_id != 0) 893 if (timer_id != 0)
893 remove_timer(); 894 remove_timer();
894 if (mz_threads_allow && p_mzq > 0 && gui.in_use) 895 if (mz_threads_allow && p_mzq > 0 && gui.in_use)
895 setup_timer(); 896 setup_timer();
897 return NULL;
896 } 898 }
897 899
898 #endif // MZSCHEME_GUI_THREADS 900 #endif // MZSCHEME_GUI_THREADS
899 901
900 static void 902 static void