Skip to content

Commit 3a394bb

Browse files
committed
DOCS/man/lua: suggest keep_open for nested mp.input calls
Before #17251 keep_open was needed to make nested mp.input calls. Even after that change it is still better to pass it to not show console quickly closing and reopening to the user, so recommend it.
1 parent 3d980d8 commit 3a394bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

DOCS/man/lua.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,10 @@ REPL.
931931
``keep_open``
932932
Whether to keep the console open on submit. Defaults to ``false``.
933933

934+
It is recommended to set this to ``true`` when nesting ``input.get()``
935+
or ``input.select()`` calls to avoid showing the console quickly closing
936+
and reopening.
937+
934938
``opened``
935939
A callback invoked when the console is shown. This can be used to
936940
present a list of options with ``input.set_log()``.
@@ -1027,6 +1031,10 @@ REPL.
10271031
``keep_open``
10281032
Whether to keep the console open on submit. Defaults to ``false``.
10291033

1034+
It is recommended to set this to ``true`` when nesting ``input.get()``
1035+
or ``input.select()`` calls to avoid showing the console quickly closing
1036+
and reopening.
1037+
10301038
Example:
10311039

10321040
::

0 commit comments

Comments
 (0)