From cc1e654286b9bbca2cd5428d658874205624723e Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Fri, 23 Jan 2026 09:47:07 +0100 Subject: [PATCH] DOCS/man/lua: suggest keep_open for nested mp.input calls Before 17551b2d43 keep_open was needed to make nested mp.input calls. Even after that change it is still better to pass it to not show the console quickly closing and reopening to the user, so recommend it. Co-authored-by: CogentRedTester --- DOCS/man/lua.rst | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 3f55da35ba..feb4c9cf01 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -929,7 +929,12 @@ REPL. the text in the console. ``keep_open`` - Whether to keep the console open on submit. Defaults to ``false``. + Whether to keep the console open on submit, allowing further input. + Defaults to ``false``. + + If calling ``input.get()`` or ``input.select()`` again from inside the + ``submit`` callback, setting this option to ``true`` allows a seamless + transition without the console closing and reopening. ``opened`` A callback invoked when the console is shown. This can be used to @@ -1028,7 +1033,12 @@ REPL. the 1-based index of the selected item. ``keep_open`` - Whether to keep the console open on submit. Defaults to ``false``. + Whether to keep the console open on submit, allowing further input. + Defaults to ``false``. + + If calling ``input.get()`` or ``input.select()`` again from inside the + ``submit`` callback, setting this option to ``true`` allows a seamless + transition without the console closing and reopening. Example: