Allow specifying an optional integer argument for next_layout. Fixes #6121

This commit is contained in:
Kovid Goyal
2023-03-20 19:49:37 +05:30
parent 1bed92bed1
commit f61ddd62d1
2 changed files with 7 additions and 4 deletions

View File

@@ -280,7 +280,7 @@ def remote_control(func: str, rest: str) -> FuncArgsType:
return func, args
@func_with_args('nth_os_window', 'nth_window', 'scroll_to_prompt', 'visual_window_select_action_trigger')
@func_with_args('nth_os_window', 'nth_window', 'scroll_to_prompt', 'visual_window_select_action_trigger', 'next_layout')
def single_integer_arg(func: str, rest: str) -> FuncArgsType:
try:
num = int(rest)