docs(ui): cmdline_hide parameters #34049

This commit is contained in:
RedHolger
2025-05-27 19:20:20 +05:30
committed by GitHub
parent d22fcf2917
commit 70697417c4
2 changed files with 5 additions and 4 deletions

View File

@ -65,7 +65,7 @@ EVENTS
• |vim.ui_attach()| callbacks for |ui-messages| `msg_show` events are executed in
|api-fast| context.
• New/enhanced arguments in these existing UI events:
• `cmdline_hide`: `abort` argument indicating if the cmdline was aborted.
• `cmdline_hide`: Includes `level` and `abort` arguments, `abort` argument indicating if the cmdline was aborted.
• `cmdline_show`:
• Prompts that were previously emitted as `msg_show` events, are now routed
through `cmdline_show`.

View File

@ -775,9 +775,10 @@ For command-line 'wildmenu' UI events, activate |ui-popupmenu|.
Should be hidden at next cmdline_show.
["cmdline_hide", abort] ~
Hide the cmdline. `abort` is true if the cmdline is hidden after an
aborting condition (|c_Esc| or |c_CTRL-C|).
["cmdline_hide", level, abort] ~
Hide the cmdline. `level` is the nesting level of the cmdline being hidden.
`abort` is true if the cmdline is hidden after an aborting condition
(|c_Esc| or |c_CTRL-C|).
["cmdline_block_show", lines] ~
Show a block of context to the current command line. For example if