Skip to content

Commit

Permalink
fix: allow edit range when only touching uneditable range
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSaba committed Dec 3, 2024
1 parent 9c006e5 commit 497e702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function lockCodeUsingDecoration (
return true
}
return withDecoration
? ranges.every((uneditableRange) => !monaco.Range.areIntersectingOrTouching(uneditableRange, range))
? ranges.every((uneditableRange) => !monaco.Range.areIntersecting(uneditableRange, range))
: ranges.some((editableRange) => editableRange.containsRange(range))
}

Expand Down

0 comments on commit 497e702

Please sign in to comment.