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
2 people authored and joyceerhl committed Aug 10, 2022
1 parent f926f3a commit 9c9d8f4
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 9c9d8f4

Please sign in to comment.