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

magit-diff-inside-hunk-body-p: fix scroll in sections with no content #3698

Closed
wants to merge 1 commit into from

Conversation

kidd
Copy link
Contributor

@kidd kidd commented Dec 20, 2018

In diff sections where the change is a file mode change, there's no
content in the section (only title) but scrolling through it is
allowed now.

In diff sections where the change is a file mode change, there's no
content in the section (only title) but scrolling through it is
allowed now.
@tarsius tarsius closed this in a74b148 Dec 26, 2018
@tarsius
Copy link
Member

tarsius commented Dec 26, 2018

Thanks!

I fixed this a bit differently. Instead of pretending that those special hunks have a body, I just prevent the code from running that would error if it was run even though there is no body.

@kidd
Copy link
Contributor Author

kidd commented Dec 26, 2018

cool.

Thanks!

@kidd kidd deleted the diff-on-empty-section branch December 26, 2018 09:39
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.

2 participants