fix(hide-extra-letters): extra letters with hideExtraLetters enabled causing caret problems (@Leonabcd123) (#7272)

### Description

Same solution as  #7254
This commit is contained in:
Leonabcd123 2025-12-19 18:00:02 +02:00 committed by GitHub
parent ca9dac17a7
commit 805c7ae7d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -300,7 +300,7 @@ export class Caret {
if (options.letterIndex >= letters.length) {
side = "afterLetter";
if (Config.blindMode) {
if (Config.blindMode || Config.hideExtraLetters) {
options.letterIndex = wordText?.length - 1;
} else {
options.letterIndex = letters.length - 1;