-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
smoothscroll down never leaves the line when scrolloff non zero #14726
Comments
Since there is a simple workaround, do @luukvbaal I'm only asking about this issue now to make sure it is seen. I vaguely recall something about known issues with |
I noticed the issue(and kept it in my inbox) but it might be a while before I will be able to look into it. I don't think there are any other open smoothscroll issues currently. |
I lied, I looked into it right after writing this and fell down the smoothscroll rabbit hole once I established that this was caused by a regression in #14410. #14783 fixes the two problems mentioned here, and fixes one screen issue with sms + scrolloff near the end of a line(also present before #14410), while noting some additional screen problems... |
I turned this feature on when Bram first released it; I've seen some very bizzare things... I tried this patch, works for me, |
Haha same, but I meant in the code; it is still quite messy...
Thanks for confirming the fix. |
Me too, kind of. Assuming vim is a holographic universe, and considering what I've seen as a user for smoothscroll evolution over the last year, I'm thinking as a programmer you've seen... |
Steps to reproduce
On a long line, continually doing
gj
never leaves the line. When you get close to the end of the long line, the first chars of the long line appear at the top of screen. Attached a file, but I'd guess any old file with a long line works.NOTE: change to
set scrolloff=0
and it works OK.Additionally, being at the top line of the file, doing the first
gj
end up on the third display line. There is no way to easily place the cursor on the first display lines.long-line.txt
Expected behaviour
Going down one line goes down one display line.
Version of Vim
9.1.393
Environment
ubuntu/gtk
Logs and stack traces
No response
The text was updated successfully, but these errors were encountered: