Skip to content

Commit

Permalink
Merge pull request #12201 from keymanapp/fix/web/malformed-reversion-…
Browse files Browse the repository at this point in the history
…display-strings

fix(web): fix malformed reversion display strings
  • Loading branch information
jahorton authored Aug 20, 2024
2 parents 9d9a091 + a5682dc commit 5bf42c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class ModelCompositor {
// Handles display string for reversions triggered by accepting a suggestion mid-token.
const preCaretToken = postContextTokenization.left[postContextTokenization.left.length - 1];
revertedPrefix = (preCaretToken && !preCaretToken.isWhitespace) ? preCaretToken.text : '';
revertedPrefix += postContextTokenization.caretSplitsToken ? postContextTokenization.right[0] : '';
revertedPrefix += postContextTokenization.caretSplitsToken ? postContextTokenization.right[0].text : '';
} else {
revertedPrefix = this.wordbreak(postContext);
}
Expand Down

0 comments on commit 5bf42c5

Please sign in to comment.