Skip to content

Commit

Permalink
Fix bug with two adjacent tokens (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson authored Jul 21, 2021
1 parent 0e307f4 commit f0612d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processTargets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function processSingleRangeTarget(
const endSelection = endTarget!.selection.selection;

const isStartBeforeEnd = startSelection.start.isBeforeOrEqual(
endSelection.end
endSelection.start
);

const anchor = isStartBeforeEnd ? startSelection.start : startSelection.end;
Expand Down

0 comments on commit f0612d9

Please sign in to comment.