diff options
author | LemonBoy <thatlemon@gmail.com> | 2022-04-09 18:17:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-09 18:17:34 +0100 |
commit | 2bf52dd065495cbf28e28792f2c2d50d44546d9f (patch) | |
tree | f6c2fabb35e2f7f12f441d76048b3f1575f4a6b4 /src/ex_docmd.c | |
parent | 81b46a6ccd818609e1ca8cd410e26a58428c30ba (diff) |
patch 8.2.4723: the ModeChanged autocmd event is inefficientv8.2.4723
Problem: The ModeChanged autocmd event is inefficient.
Solution: Avoid allocating memory. (closes #10134) Rename
trigger_modechanged() to may_trigger_modechanged().
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 0b8825959e..7e3cb7ec37 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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. |