diff options
author | =?UTF-8?q?Magnus=20Gro=C3=9F?= <magnus.gross@rwth-aachen.de> | 2021-09-12 13:39:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-09-12 13:39:55 +0200 |
commit | f1e8876fa2359b572d262772747405d3616db670 (patch) | |
tree | 1b33a32bccaa4522f14f2aad8ee8044295635d0b /src/ex_docmd.c | |
parent | 464393a6961d9b9de2bfe9c05f8e2ae5bdec0293 (diff) |
patch 8.2.3430: no generic way to trigger an autocommand on mode changev8.2.3430
Problem: No generic way to trigger an autocommand on mode change.
Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes #8856)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 06bff80761..617de6f06d 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -485,6 +485,7 @@ do_exmode( else exmode_active = EXMODE_NORMAL; State = NORMAL; + trigger_modechanged(); // When using ":global /pat/ visual" and then "Q" we return to continue // the :global command. |