Skip to content

Commit bb4145c

Browse files
committed
Server(fix[command_prompt]): -N means numeric input, not no-execute
why: command-prompt -N sets PROMPT_NUMERIC (accept only numeric input). It does not suppress command execution. Verified in cmd-command-prompt.c:161. what: - Rename no_execute param to numeric - Update docstring to reflect actual semantics
1 parent 512552b commit bb4145c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/libtmux/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ def command_prompt(
897897
one_key: bool | None = None,
898898
key_only: bool | None = None,
899899
on_input_change: bool | None = None,
900-
no_execute: bool | None = None,
900+
numeric: bool | None = None,
901901
prompt_type: str | None = None,
902902
) -> None:
903903
"""Open a command prompt via ``$ tmux command-prompt``.
@@ -923,8 +923,8 @@ def command_prompt(
923923
Only accept key presses, not text (``-k`` flag).
924924
on_input_change : bool, optional
925925
Run template on each keystroke (``-i`` flag).
926-
no_execute : bool, optional
927-
Do not execute the command, just insert into prompt (``-N`` flag).
926+
numeric : bool, optional
927+
Accept only numeric input (``-N`` flag).
928928
prompt_type : str, optional
929929
Prompt type (``-T`` flag). One of: ``command``, ``search``,
930930
``target``, ``window-target``.
@@ -952,7 +952,7 @@ def command_prompt(
952952
if on_input_change:
953953
tmux_args += ("-i",)
954954

955-
if no_execute:
955+
if numeric:
956956
tmux_args += ("-N",)
957957

958958
if prompt is not None:

0 commit comments

Comments
 (0)