Skip to content

Commit 154af5a

Browse files
committed
1 parent 912ccea commit 154af5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/view/renderers/markdownCell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ export class StatefulMarkdownCell extends Disposable {
395395
const primarySelection = editor.getSelection();
396396

397397
if (primarySelection) {
398-
this.notebookEditor.revealLineInViewAsync(this.viewCell, primarySelection.positionLineNumber);
398+
this.notebookEditor.revealRangeInViewAsync(this.viewCell, primarySelection);
399399
}
400400
}));
401401

0 commit comments

Comments
 (0)