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 efae6c9 commit bf79c75Copy full SHA for bf79c75
packages/generate-examples/src/lib/generateHtml.ts
@@ -177,7 +177,14 @@ class SelectionParser {
177
}
178
179
parse(selection: CursorlessFixtureSelection) {
180
- const { anchor: start, active: end } = selection;
+ let start, end;
181
+ if (selection.type === 'UntypedTarget') {
182
+ start = selection.contentRange.start.line;
183
+ end = selection.contentRange.end.line;
184
+ } else {
185
+ start = selection.anchor.line;
186
+ end = selection.active.line;
187
+ }
188
for (let l = end.line; l <= start.line; l += 1) {
189
if (l !== end.line && l !== start.line) {
190
this.handleInsideLine(l);
0 commit comments