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

Correctly compute the effective margin beyond the edge of the window #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rotsor
Copy link

@Rotsor Rotsor commented Feb 19, 2017

Previously, smooth-scroll-count-lines, which we use to determine effective margin, would return non-negative values, which would be incorrect in case point is moved beyond the edge of the window. Now it is able to return negative values.

…dge of the window

Previously, smooth-scroll-count-lines, which we use to determine effective margin, would return non-negative values, which would be incorrect in case point is moved beyond the edge of the screen. Now it is able to return negative values.
@Rotsor
Copy link
Author

Rotsor commented Feb 19, 2017

This is fixing the small remaining part of issue #14: if your point is at the beginning of the window and you press C-p C-n C-p, then the second C-p is a no-op now.

@aspiers aspiers self-requested a review February 10, 2018 17:16
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.

1 participant