diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-10 07:20:35 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-10 08:02:22 +0800 |
commit | 263a7fde35f2341f526a536690122b927300021a (patch) | |
tree | 99339f45da62e1054f9384f102e686b557c02c40 /src/nvim/ex_docmd.c | |
parent | ff726cc569994aab61a42c40270e679dc80cca7c (diff) | |
download | rneovim-263a7fde35f2341f526a536690122b927300021a.tar.gz rneovim-263a7fde35f2341f526a536690122b927300021a.tar.bz2 rneovim-263a7fde35f2341f526a536690122b927300021a.zip |
vim-patch:8.2.4723: the ModeChanged autocmd event is inefficient
Problem: The ModeChanged autocmd event is inefficient.
Solution: Avoid allocating memory. (closes vim/vim#10134) Rename
trigger_modechanged() to may_trigger_modechanged().
https://github.com/vim/vim/commit/2bf52dd065495cbf28e28792f2c2d50d44546d9f
Make v:event readonly for ModeChanged.
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 1f17101aca..482bf69f67 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -187,7 +187,7 @@ void do_exmode(void) exmode_active = true; State = NORMAL; - trigger_modechanged(); + may_trigger_modechanged(); // When using ":global /pat/ visual" and then "Q" we return to continue // the :global command. |