Mercurial > vim
comparison src/ex_docmd.c @ 25790:16a7d1154be8 v8.2.3430
patch 8.2.3430: no generic way to trigger an autocommand on mode change
Commit: https://github.com/vim/vim/commit/f1e8876fa2359b572d262772747405d3616db670
Author: =?UTF-8?q?Magnus=20Gro=C3=9F?= <magnus.gross@rwth-aachen.de>
Date: Sun Sep 12 13:39:55 2021 +0200
patch 8.2.3430: no generic way to trigger an autocommand on mode change
Problem: No generic way to trigger an autocommand on mode change.
Solution: Add the ModeChanged autocommand event. (Magnus Gross, closes https://github.com/vim/vim/issues/8856)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Sep 2021 13:45:05 +0200 |
parents | 589226a5f317 |
children | 826c36b4640b |
comparison
equal
deleted
inserted
replaced
25789:3afd5ab3d69a | 25790:16a7d1154be8 |
---|---|
483 if (improved) | 483 if (improved) |
484 exmode_active = EXMODE_VIM; | 484 exmode_active = EXMODE_VIM; |
485 else | 485 else |
486 exmode_active = EXMODE_NORMAL; | 486 exmode_active = EXMODE_NORMAL; |
487 State = NORMAL; | 487 State = NORMAL; |
488 trigger_modechanged(); | |
488 | 489 |
489 // When using ":global /pat/ visual" and then "Q" we return to continue | 490 // When using ":global /pat/ visual" and then "Q" we return to continue |
490 // the :global command. | 491 // the :global command. |
491 if (global_busy) | 492 if (global_busy) |
492 return; | 493 return; |