mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
stop on word only inserts spaces if input length is greater than 0
This commit is contained in:
parent
0abb1fb2a1
commit
702c36189c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue