Skip to content

Commit

Permalink
attempted fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haberdashPI committed Sep 19, 2024
1 parent 953692b commit 2d058f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/unitMotions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ function* resolveUnitBoundaries(
): Generator<Range> {
let backwards: Generator<Range>;
function* resolveHelper(firstUnit: Range, back: Range): Generator<Range> {
if (resolve === Boundary.Start && (!firstUnit?.start || !forward)) {
if (resolve === Boundary.Start) {
if (forward) {
if (!firstUnit?.start) {
firstUnit = fuseRanges(firstUnit, back);
Expand All @@ -465,7 +465,7 @@ function* resolveUnitBoundaries(
}
yield firstUnit;
}
} else if (resolve === Boundary.End && (!firstUnit?.end || forward)) {
} else if (resolve === Boundary.End) {
if (!forward) {
if (!firstUnit?.end) {
firstUnit = fuseRanges(firstUnit, back);
Expand Down

0 comments on commit 2d058f2

Please sign in to comment.