fix: nospace not working

This commit is contained in:
Miodec 2025-11-25 10:23:07 +01:00
parent 3dfea100d1
commit e3135550d5

View file

@ -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;