diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index fef4c07f6..06f5da6c6 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -910,7 +910,7 @@ The tab index to reload. [[repeat]] === repeat -Syntax: +:repeat [*--mulcount*] 'times' 'command'+ +Syntax: +:repeat 'times' 'command'+ Repeat a given command. @@ -918,8 +918,8 @@ Repeat a given command. * +'times'+: How many times to repeat. * +'command'+: The command to run, with optional args. -==== optional arguments -* +*-c*+, +*--mulcount*+: When given, 'times' will be multiplied with [count]. +==== count +Multiplies with 'times' when given ==== note * This command does not split arguments after the last argument and handles quotes literally. diff --git a/qutebrowser/misc/utilcmds.py b/qutebrowser/misc/utilcmds.py index 99ccc8ecf..e867dd0b8 100644 --- a/qutebrowser/misc/utilcmds.py +++ b/qutebrowser/misc/utilcmds.py @@ -75,17 +75,15 @@ def later(ms: int, command, win_id): @cmdutils.register(maxsplit=1, no_cmd_split=True, no_replace_variables=True) @cmdutils.argument('win_id', win_id=True) @cmdutils.argument('count', count=True) -@cmdutils.argument('mulcount', flag='c') -def repeat(times: int, command, win_id, count=None, mulcount=False): +def repeat(times: int, command, win_id, count=None): """Repeat a given command. Args: times: How many times to repeat. command: The command to run, with optional args. - mulcount: Multiply 'times' with [count]. """ - if mulcount and count is not None: + if count is not None: times *= count if times < 0: