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

fix: Allow highlighting one past end #74

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

Muscraft
Copy link
Member

@Muscraft Muscraft commented Jan 4, 2024

Being able to highlight one past the end of the given source if the source provided is from .lines() (and got its newline stripped) or is the last line in the file and you want to highlight the next "character". cargo needs something to do this, so it doesn't have to remember to add a new line in either scenario.

src/renderer/display_list.rs Outdated Show resolved Hide resolved
@Muscraft Muscraft merged commit e0bf89f into rust-lang:master Jan 4, 2024
13 checks passed
@Muscraft Muscraft deleted the one-past branch January 4, 2024 22:09
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.

None yet

2 participants