Skip to content

Commit 805c7ae

Browse files
authored
fix(hide-extra-letters): extra letters with hideExtraLetters enabled causing caret problems (@Leonabcd123) (monkeytypegame#7272)
### Description Same solution as monkeytypegame#7254
1 parent ca9dac1 commit 805c7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/ts/utils/caret.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export class Caret {
300300
if (options.letterIndex >= letters.length) {
301301
side = "afterLetter";
302302

303-
if (Config.blindMode) {
303+
if (Config.blindMode || Config.hideExtraLetters) {
304304
options.letterIndex = wordText?.length - 1;
305305
} else {
306306
options.letterIndex = letters.length - 1;

0 commit comments

Comments
 (0)