Skip to content

Commit

Permalink
Add structure view elements to correct level (fixes #3273)
Browse files Browse the repository at this point in the history
  • Loading branch information
slideclimb committed Oct 11, 2023
1 parent c0386f7 commit 08d0e2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class LatexStructureViewElement(private val element: PsiElement) : StructureView
}
// Avoid that an element is not added at all by adding it one level up anyway.
// If index is null, that means that the tree currently only has elements with a higher order.
else {
else if (index == null || indexInsert == index) {
registerSameLevel(sections, child, currentCmd, treeElements, numbering)
break
}
Expand Down

0 comments on commit 08d0e2c

Please sign in to comment.