Skip to content

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