Problem: With 'smoothscroll' the scroll position in a long line is lost when
a window is temporarily squeezed to a couple of lines, for example
when opening and closing a help window.
Solution: When the cursor ends up in the skipped columns, skip up to the
screen line the cursor is in instead of showing the start of the
line.
To reproduce, with 'smoothscroll' and a line longer than the window:
exe "norm! gg10\<C-E>"
new
wincmd _
close
The window was scrolled back to the start of the line. ":help" followed by
":close" does the same when the help window leaves little room.
Not fixed by this: while the window is squeezed the skipped columns are
adjusted to keep the cursor visible, which is correct, so the position can
end up one screen line off. Restoring it exactly needs the saved values
that the todo.txt entry asks for, that entry stays as it is.
https://github.com/vim/vim/pull/20892
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
thanks
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()