mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4723: the ModeChanged autocmd event is inefficient
Problem: The ModeChanged autocmd event is inefficient. Solution: Avoid allocating memory. (closes #10134) Rename trigger_modechanged() to may_trigger_modechanged().
This commit is contained in:
@@ -1714,7 +1714,7 @@ getcmdline_int(
|
||||
trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINEENTER);
|
||||
#ifdef FEAT_EVAL
|
||||
if (!debug_mode)
|
||||
trigger_modechanged();
|
||||
may_trigger_modechanged();
|
||||
#endif
|
||||
|
||||
init_history();
|
||||
@@ -2555,7 +2555,7 @@ returncmd:
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
if (!debug_mode)
|
||||
trigger_modechanged();
|
||||
may_trigger_modechanged();
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_INPUT_METHOD
|
||||
|
Reference in New Issue
Block a user