actionRepeat parameter
The actionRepeat parameter is used to determine the integer
interpretation of the current value of the actionArgument
parameter.
Many editor actions use the argument as a repeat value. The actionRepeat
parameter is guaranteed to return an integer value, whereas the actionArgument
parameter is a general argument.
The integer value is determined by the following rules:
- if actionArgument has not been set, actionRepeat returns 1
- if actionArgument consists of nothing but asterisks, actionRepeat
returns an integer equal to four times the number of asterisks
- if any decimal digits are found in actionArgument, actionRepeat
returns the integer that is created by those digits
- if actionArgument contains at least one hyphen, actionRepeat
returns a negative integer
- if actionArgument contains at least one hyphen but there are no
decimal digits, actionRepeat returns -1.
Availability
query command
Scope
The current view.
Syntax
query actionRepeat
Examples
query actionRepeat

query command
actionArgument parameter
appendToActionArgument action
setActionArgument action
