From 70697417c4b6f70b1e25cde4d56ca4fc243347a0 Mon Sep 17 00:00:00 2001 From: RedHolger Date: Tue, 27 May 2025 19:20:20 +0530 Subject: [PATCH] docs(ui): cmdline_hide parameters #34049 --- runtime/doc/news-0.11.txt | 2 +- runtime/doc/ui.txt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/runtime/doc/news-0.11.txt b/runtime/doc/news-0.11.txt index be7820f063..06e305630d 100644 --- 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 index a4c440a94c..26de530425 100644 --- 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