comparison src/ex_docmd.c @ 28397:d1702731786c v8.2.4723

patch 8.2.4723: the ModeChanged autocmd event is inefficient Commit: https://github.com/vim/vim/commit/2bf52dd065495cbf28e28792f2c2d50d44546d9f Author: LemonBoy <thatlemon@gmail.com> Date: Sat Apr 9 18:17:34 2022 +0100 patch 8.2.4723: the ModeChanged autocmd event is inefficient Problem: The ModeChanged autocmd event is inefficient. Solution: Avoid allocating memory. (closes https://github.com/vim/vim/issues/10134) Rename trigger_modechanged() to may_trigger_modechanged().
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Apr 2022 19:30:02 +0200
parents 0902a477cd03
children 2655935b5ccc
comparison
equal deleted inserted replaced
28396:cf018ac0499c 28397:d1702731786c
475 if (improved) 475 if (improved)
476 exmode_active = EXMODE_VIM; 476 exmode_active = EXMODE_VIM;
477 else 477 else
478 exmode_active = EXMODE_NORMAL; 478 exmode_active = EXMODE_NORMAL;
479 State = NORMAL; 479 State = NORMAL;
480 trigger_modechanged(); 480 may_trigger_modechanged();
481 481
482 // When using ":global /pat/ visual" and then "Q" we return to continue 482 // When using ":global /pat/ visual" and then "Q" we return to continue
483 // the :global command. 483 // the :global command.
484 if (global_busy) 484 if (global_busy)
485 return; 485 return;