Skip to content

fix(pace-caret): keep going when words are not generated yet (@boergeson) - #8373

Open
boergeson wants to merge 2 commits into
monkeytypegame:masterfrom
boergeson:fix/pace-caret-ungenerated-words
Open

fix(pace-caret): keep going when words are not generated yet (@boergeson)#8373
boergeson wants to merge 2 commits into
monkeytypegame:masterfrom
boergeson:fix/pace-caret-ungenerated-words

Conversation

@boergeson

Copy link
Copy Markdown
Contributor

Description

With plus_one, plus_two, plus_three etc only a couple of words exist ahead of the current one. When the pace caret got past the last generated word it threw, settings got set to null and the caret was gone for the rest of the test, even after you catched up and passed it.

Now when the pace caret runs out of words it hides and keeps counting the steps it could not take. Once more words are there it jumps ahead by that amount and carries on. Timing is untouched so the position stays exact. Checked with a 60 wpm custom pace on plus one: paused 3s after the first letter, then typed past it, the caret sat at char 22, 32 and 52 at 4.42s, 6.42s and 10.43s (expected 22.1, 32.1, 52.1).

Also added a unit test for pace-caret that covers running past the generated words and coming back.

Checks

  • Check if any open issues are related to this PR; if so, be sure to tag them below.
  • Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info)
  • Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title.

Closes #7527

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pace Caret disappears when you advance beyond Plus Three.

2 participants