summaryrefslogtreecommitdiff
path: root/src/autocmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-21 12:19:53 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-21 12:19:53 +0200
commitb53e13a91ab2fc9d52bd044715daa84972f4ce47 (patch)
tree6df807962d3719c50e6c33beaeaf8bc23ab8b12e /src/autocmd.c
parent20d89e0ac65686481f97657008deede0b39ef5db (diff)
downloadvim-git-b53e13a91ab2fc9d52bd044715daa84972f4ce47.tar.gz
patch 8.2.1874: can't do something just before leaving Insert modev8.2.1874
Problem: Can't do something just before leaving Insert mode. Solution: Add the InsertLeavePre autocommand event. (closes #7177)
Diffstat (limited to 'src/autocmd.c')
-rw-r--r--src/autocmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/autocmd.c b/src/autocmd.c
index 57b5674e1..be35845c9 100644
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -149,6 +149,7 @@ static struct event_name
{"InsertChange", EVENT_INSERTCHANGE},
{"InsertEnter", EVENT_INSERTENTER},
{"InsertLeave", EVENT_INSERTLEAVE},
+ {"InsertLeavePre", EVENT_INSERTLEAVEPRE},
{"InsertCharPre", EVENT_INSERTCHARPRE},
{"MenuPopup", EVENT_MENUPOPUP},
{"OptionSet", EVENT_OPTIONSET},