document-outline
document-outline copied to clipboard
Issue with 'Highlight Current Section' option
Consider that the markdown document has the following outline.

Given this structure, if the option Highlight Current Section is enabled, the outline does not get highlighted when the cursor is in the last section 2.2 heading.

I have observed this problem with sections having the following properties -
- should be the last one for that level (
2.2 headingis the last of level 2 headings) - there has to be prior similar level heading (
2.1-heading) - that prior heading should have a sub-heading (
2.1.1 heading)
I have observed this behaviour both in markdown and latex files.
Intriguing... a bit busy atm but will try to look into this when i can. Could be something to do with row numbers, or maybe something causing the unfold to no trigger...