Repository navigation
Conversation
`cmdline_leave_key` stores the numeric value of the key that caused the command-line to exit. Examples: 13 (`<CR>`), 27 (`<Esc>`), 3 (`<C-C>`).
Member
|
The |
M src/ex_getln.c
Contributor
|
it works for for me, however: Probably should be updated here too. PS, I believe |
Contributor
|
All good, works as expected, thank you! |
Member
|
thanks |
Contributor
Author
|
Thanks. |
sahinf
pushed a commit
to sahinf/vim
that referenced
this pull request
Sep 7, 2025
Problem: unclear what key causes CmdlineLeave autocommand Solution: Set |v:char| to the key (Girish Palya). related: vim#17806 closes: vim#18063 Signed-off-by: Girish Palya <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
zeertzjq
added a commit
to zeertzjq/neovim
that referenced
this pull request
Sep 8, 2025
Problem: unclear what key causes CmdlineLeave autocommand Solution: Set |v:char| to the key (Girish Palya). related: vim/vim#17806 closes: vim/vim#18063 vim/vim@ba9551d Co-authored-by: Girish Palya <[email protected]>
zeertzjq
added a commit
to zeertzjq/neovim
that referenced
this pull request
Sep 8, 2025
Problem: unclear what key causes CmdlineLeave autocommand Solution: Set |v:char| to the key (Girish Palya). related: vim/vim#17806 closes: vim/vim#18063 vim/vim@ba9551d Co-authored-by: Girish Palya <[email protected]>
zeertzjq
added a commit
to neovim/neovim
that referenced
this pull request
Sep 8, 2025
…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 vim/vim@ba9551d Co-authored-by: Girish Palya <[email protected]>
dundargoc
pushed a commit
to dundargoc/neovim
that referenced
this pull request
Sep 27, 2025
…eovim#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 vim/vim@ba9551d Co-authored-by: Girish Palya <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v:charstores the key that caused the command-line to exit. Examples:<CR>,<Esc>,<C-C>. Applies toCmdlineLeaveandCmdlineLeavePreevents.See #17806 (comment)