Skip to content

Commit

Permalink
Update token creation logic. Fixes #95.
Browse files Browse the repository at this point in the history
  • Loading branch information
alvi-khan committed Aug 13, 2023
1 parent 3409e79 commit 442a43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/token-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TokenManager {
let oldTokens = currentToken.tokens;
for (let j = 0; j < oldTokens.length; j++) {
let oldToken = oldTokens[j];
if (oldToken.end < selectionStart) {
if (oldToken.end <= selectionStart) {
tokensBeforeSelection.push(oldToken);
} else if (oldToken.end > selectionStart && oldToken.start < selectionEnd) {
selectedTokens.push(oldToken);
Expand Down

0 comments on commit 442a43e

Please sign in to comment.