Skip to content

Show correct line numbers when fold ist set to true, fixes #52 #55

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

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

Inky-developer
Copy link
Contributor

@Inky-developer Inky-developer commented Jan 3, 2022

This pr changes the format_header function to use the line number that is already stored in DisplayLine instead of (wrongly) recomputing it.
Fixes #52

This fixes wrong line numbers shown when the `fold` is set to `true`
Copy link
Contributor

@zbraniecki zbraniecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@zbraniecki zbraniecki merged commit a620165 into rust-lang:master Jun 2, 2023
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

Successfully merging this pull request may close these issues.

Origin line number is not correct when using a slice with fold: true
2 participants