Skip to content

Commit

Permalink
Fix strange traverse without v8BreakIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
wtetsu committed Feb 11, 2022
1 parent 38f0755 commit b928bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/lib/traverser.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const retrieveProperStartIndex = (sourceText, cursorIndex) => {
let currentLength = 0;
const tokens = tokenize(sourceText, "ja-JP");
if (!tokens) {
return 0;
return cursorIndex;
}
for (let i = 0; i < tokens.length; i++) {
const token = tokens[i];
Expand Down

0 comments on commit b928bf5

Please sign in to comment.