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 end of previous line wrongly being included in highlight #52

Merged
merged 1 commit into from Sep 13, 2021

Conversation

icewind1991
Copy link
Contributor

when the highlight span starts at the very begining of a line, the highlight currently includes the line above

Before:

image

After:

image

@zkat
Copy link
Owner

zkat commented Sep 12, 2021

oh sweet. Nice catch!

@zkat
Copy link
Owner

zkat commented Sep 12, 2021

ugh, looks like this does break some tests. These rules have been really tricky to get right :(

@icewind1991
Copy link
Contributor Author

Fixed the tests, the changes in highlight border box changed the frame width

Copy link
Owner

@zkat zkat left a comment

Choose a reason for hiding this comment

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

The headers you changed all have to be 80 characters long, because they're meant to span the entire width of the terminal. Something funky's going on if they're 7 characters shorter now. Can you look into that?

@zkat
Copy link
Owner

zkat commented Sep 13, 2021

Nevermind that part is my fault. Can you remove the diffs on the headers and I'll just merge this? And can you add a test that covers this corner case?

@icewind1991
Copy link
Contributor Author

done

@zkat zkat merged commit d994add into zkat:main Sep 13, 2021
@icewind1991 icewind1991 deleted the span-line-start branch September 13, 2021 17:38
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