-
Notifications
You must be signed in to change notification settings - Fork 280
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
evil-scroll-up and evil-scroll-down do not work correctly when end of buffer is visible #1497
Comments
My initial thought was that we could travel up to line 0 and do the calcs, in a
This is 3 or 4 lines too high for the zoom levels I tested, and I'm not sure what causes this difference. We could try just bunging in a magic number:
but I'd rather find a proper way. |
I'm not sure what Also, I noticed that in Vim, |
Well spotted @countvajhula - we should adjust that. The |
Another problem I've just noticed: a window filled with a single line that takes up the majority of the window due to |
I've reverted the commit which caused these bugs. Sorry for the inconvenience @chopptimus. |
@tomdl89 Sure, I'll take a look. |
Issue type
Bug report
Environment
Emacs version: 28.0.50
Operating System: Ubuntu 20.4
Evil version: 1.14.0
Evil installation type: MELPA, MELPA stable, Quelpa, El-Get, manual -->
Graphical/Terminal: Graphical
Tested in a
make emacs
session (see CONTRIBUTING.md): YesReproduction steps
make emacs
C-e
, scroll down so only the last line of the buffer is visibleM-x evil-scroll-up
Expected behavior
The window should be half filled with lines from the buffer.
Actual behavior
The window doesn't scroll at all.
Further notes
This is because
evil-scroll-up
(andevil-scroll-down
) useevil-visible-window-height
which reports incorrect values for window height when the window is positioned over the end of the buffer.The text was updated successfully, but these errors were encountered: