commit 70697417c4b6f70b1e25cde4d56ca4fc243347a0
parent d22fcf2917465aff029e781080dcc8c582c93f0e
Author: RedHolger <manuvashisth963@gmail.com>
Date: Tue, 27 May 2025 19:20:20 +0530
docs(ui): cmdline_hide parameters #34049
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/runtime/doc/news-0.11.txt b/runtime/doc/news-0.11.txt
@@ -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`.
diff --git a/runtime/doc/ui.txt b/runtime/doc/ui.txt
@@ -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