We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9de4fdb commit c3479f6Copy full SHA for c3479f6
packages/cursorless-engine/src/processTargets/modifiers/HeadTailStage.ts
@@ -57,13 +57,10 @@ class BoundedLineStage implements ModifierStage {
57
const line = this.getContainingLine(target);
58
const pairInterior = this.getContainingPairInterior(target);
59
60
- if (pairInterior == null) {
61
- return [line];
62
- }
63
-
64
- const intersection = line.contentRange.intersection(
65
- pairInterior.contentRange,
66
- );
+ const intersection =
+ pairInterior != null
+ ? line.contentRange.intersection(pairInterior.contentRange)
+ : null;
67
68
if (intersection == null || intersection.isEmpty) {
69
return [line];
0 commit comments