Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treeview badge not displaying correct number of anchors (if there are sections) #220

Open
kosirm opened this issue Feb 24, 2024 · 0 comments

Comments

@kosirm
Copy link

kosirm commented Feb 24, 2024

It's a small bug...
In /src/anchorEngine.ts, line 1208:

const anchors = this.currentAnchors.length;

shoud be:
const anchors = flattenAnchors(this.currentAnchors).length;

Problem occurs when there are sections in anchors, so currentAnchors is not reflecting real number of anchors in file.

Created pull request.

@kosirm kosirm changed the title Treeview badge not displaying correct number of anchors Treeview badge not displaying correct number of anchors (if there are sections) Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant