Skip to content

Commit

Permalink
fix sticky scroll start line number (#157466)
Browse files Browse the repository at this point in the history
Co-authored-by: dweizhe <d.weizhe@anyong.com.tw>
  • Loading branch information
DingWeizhe and dweizhe authored Aug 10, 2022
1 parent ca824e6 commit fd5c7a7
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 fd5c7a7

Please sign in to comment.