mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-02 05:24:50 +08:00
fix: nospace not working
This commit is contained in:
parent
3dfea100d1
commit
e3135550d5
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ export async function onInsertText(options: OnInsertTextParams): Promise<void> {
|
|||
// word navigation check
|
||||
const noSpaceForce =
|
||||
isFunboxActiveWithProperty("nospace") &&
|
||||
TestInput.input.current.length === TestWords.words.getCurrent().length;
|
||||
(testInput + data).length === TestWords.words.getCurrent().length;
|
||||
const shouldGoToNextWord =
|
||||
((charIsSpace || charIsNewline) && !shouldInsertSpace) || noSpaceForce;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue