From 6c0c3f2d6bf903346e5281665d4b46c484ffdadf 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 23c2008050670..6b638527e628d 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 @@ -1025,7 +1030,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: