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;