We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da01d29 commit 1cf4b07Copy full SHA for 1cf4b07
frontend/src/ts/utils/caret.ts
@@ -300,7 +300,10 @@ export class Caret {
300
// we also clamp the letterIndex to be within the range of actual letters
301
// anything beyond just goes to the edge of the word
302
let side: "beforeLetter" | "afterLetter" = "beforeLetter";
303
- if (options.letterIndex >= letters.length) {
+ if (
304
+ options.letterIndex >= letters.length ||
305
+ (Config.blindMode && options.letterIndex >= wordText.length)
306
+ ) {
307
side = "afterLetter";
308
options.letterIndex = letters.length - 1;
309
}
0 commit comments