From f0612d922e68cfc3bba4268c47e4379e376e4d18 Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Wed, 21 Jul 2021 16:23:11 +0200 Subject: [PATCH] Fix bug with two adjacent tokens (#129) --- src/processTargets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processTargets.ts b/src/processTargets.ts index 2174747c5a..daf3a9834f 100644 --- a/src/processTargets.ts +++ b/src/processTargets.ts @@ -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;