Skip to content

Commit e313555

Browse files
committed
fix: nospace not working
1 parent 3dfea10 commit e313555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/input/handlers/insert-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export async function onInsertText(options: OnInsertTextParams): Promise<void> {
148148
// word navigation check
149149
const noSpaceForce =
150150
isFunboxActiveWithProperty("nospace") &&
151-
TestInput.input.current.length === TestWords.words.getCurrent().length;
151+
(testInput + data).length === TestWords.words.getCurrent().length;
152152
const shouldGoToNextWord =
153153
((charIsSpace || charIsNewline) && !shouldInsertSpace) || noSpaceForce;
154154

0 commit comments

Comments
 (0)