stop on word only inserts spaces if input length is greater than 0

This commit is contained in:
Miodec 2023-02-21 16:18:23 +01:00
parent 0abb1fb2a1
commit 702c36189c

View file

@ -421,7 +421,7 @@ function handleChar(
if (
Config.difficulty !== "normal" ||
(Config.strictSpace && Config.mode !== "zen") ||
Config.stopOnError === "word"
(Config.stopOnError === "word" && charIndex > 0)
) {
if (dontInsertSpace) {
dontInsertSpace = false;