mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -477,7 +477,7 @@ do_exmode(
|
||||
else
|
||||
exmode_active = EXMODE_NORMAL;
|
||||
State = NORMAL;
|
||||
trigger_modechanged();
|
||||
may_trigger_modechanged();
|
||||
|
||||
// When using ":global /pat/ visual" and then "Q" we return to continue
|
||||
// the :global command.
|
||||
|
Reference in New Issue
Block a user