Skip to content

Commit

Permalink
fix sticky scroll start line number
Browse files Browse the repository at this point in the history
  • Loading branch information
dweizhe committed Aug 9, 2022
1 parent 3899389 commit 3388612
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class StickyOutlineElement {
});
let range: StickyRange | undefined;
if (outlineModel instanceof OutlineElement) {
range = new StickyRange(outlineModel.symbol.range.startLineNumber, outlineModel.symbol.range.endLineNumber);
range = new StickyRange(outlineModel.symbol.selectionRange.startLineNumber, outlineModel.symbol.range.endLineNumber);
} else {
range = undefined;
}
Expand Down

0 comments on commit 3388612

Please sign in to comment.