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: considers folded lines near EoF (fix #7) #8

Merged
merged 4 commits into from
Aug 18, 2023
Merged

fix: considers folded lines near EoF (fix #7) #8

merged 4 commits into from
Aug 18, 2023

Conversation

chrisgrieser
Copy link
Contributor

took a bit of tinkering, but I think I managed to properly consider folded lines in the scrolloff calculation.

@Aasim-A
Copy link
Owner

Aasim-A commented Aug 14, 2023

Thanks a lot for the PR!
I like the way you approached it.

One concern would be, what would the performance impact be? since this function runs on every cursor movement.

@chrisgrieser
Copy link
Contributor Author

I haven't done any measurements, but I did not experience any noticeable performance setbacks the last few hours. 🤔

@chrisgrieser
Copy link
Contributor Author

well, just in case, I added a safeguard that ensures calculations are only made when the view in close enough to the EoF that scrolloff-adjustments are plausible.

@Aasim-A
Copy link
Owner

Aasim-A commented Aug 18, 2023

LGTM! Thanks again for the PR.

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