Skip to content

Commit 681a8d5

Browse files
author
aiday-mar
committed
change -1 to previousStartLine
1 parent 300a7f5 commit 681a8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class StickyOutlineElement {
163163
const children: StickyOutlineElement[] = [];
164164
for (const child of outlineModel.children.values()) {
165165
if (child instanceof OutlineGroup || child instanceof OutlineModel) {
166-
children.push(StickyOutlineElement.fromOutlineModel(child, -1));
166+
children.push(StickyOutlineElement.fromOutlineModel(child, previousStartLine));
167167
} else if (child instanceof OutlineElement && child.symbol.selectionRange.startLineNumber !== child.symbol.range.endLineNumber) {
168168
if (child.symbol.selectionRange.startLineNumber !== previousStartLine) {
169169
children.push(StickyOutlineElement.fromOutlineModel(child, child.symbol.selectionRange.startLineNumber));

0 commit comments

Comments
 (0)