Skip to content

Commit 96ec688

Browse files
Disable expand to containing token on fallback
1 parent 3266cc7 commit 96ec688

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/cursorless-engine/src/core/getCommandFallback.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ function getModifiersFromTarget(
142142
return target.modifiers;
143143
}
144144

145-
if (target.mark?.type === "cursor") {
146-
return [{ type: "containingTokenIfEmpty" }];
147-
}
145+
// FIXME: Trying to select a word in the file explorer will create weird behavior.
146+
// if (target.mark?.type === "cursor") {
147+
// return [{ type: "containingTokenIfEmpty" }];
148+
// }
148149
}
149150
return [];
150151
}

0 commit comments

Comments
 (0)