mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
In the content controller, if the parse has a number, add repeat
This commit is contained in:
parent
77d84a1a9e
commit
c822a233de
1 changed files with 6 additions and 0 deletions
|
@ -102,6 +102,7 @@ function* ParserController() {
|
|||
|
||||
while (true) {
|
||||
let exstr = ""
|
||||
let repeat = 1
|
||||
let keyEvents: KeyboardEvent[] = []
|
||||
try {
|
||||
while (true) {
|
||||
|
@ -154,6 +155,7 @@ function* ParserController() {
|
|||
|
||||
if (response.exstr) {
|
||||
exstr = response.exstr
|
||||
repeat = response.numericPrefix
|
||||
break
|
||||
} else {
|
||||
keyEvents = response.keys
|
||||
|
@ -164,6 +166,10 @@ function* ParserController() {
|
|||
logger.debug("suffix: ", contentState.suffix)
|
||||
}
|
||||
}
|
||||
if (repeat > 1) {
|
||||
exstr = "repeat " + repeat.toString() + " " + exstr
|
||||
logger.debug("repeating: ", repeat)
|
||||
}
|
||||
controller.acceptExCmd(exstr)
|
||||
contentState.suffix = ""
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue