vim-patch:9.1.1679: unclear what key causes CmdlineLeave autocommand (#35677)

Problem:  unclear what key causes CmdlineLeave autocommand
Solution: Set |v:char| to the key (Girish Palya).

related: vim/vim#17806
closes: vim/vim#18063

ba9551d131

Co-authored-by: Girish Palya <girishji@gmail.com>
This commit is contained in:
zeertzjq
2025-09-08 11:40:12 +08:00
committed by GitHub
parent da78772328
commit 29f30ad91c
7 changed files with 32 additions and 3 deletions

View File

@@ -14,7 +14,8 @@ vim.v.argv = ...
--- Argument for evaluating 'formatexpr' and used for the typed
--- character when using <expr> in an abbreviation `:map-<expr>`.
--- It is also used by the `InsertCharPre` and `InsertEnter` events.
--- It is also used by the `InsertCharPre`, `InsertEnter`,
--- `CmdlineLeave` and `CmdlineLeavePre` events.
--- @type string
vim.v.char = ...