[vim/vim] scroll: jump-scrolling when moving the cursor onto a wrapping line (PR #20895)

2 views
Skip to first unread message

h_east

unread,
7:21 AM (15 hours ago) 7:21 AM
to vim/vim, Subscribed
Problem:  With 'smoothscroll' and "lastline" in 'display', moving the cursor
          to a wrapping line scrolls much more than needed.
Solution: Only require the screen lines up to the cursor to be visible, the
          rest of the line can be cut off at the bottom.

related: #12411


With 'smoothscroll' and "lastline" in 'display', moving the cursor to a
wrapping line below the window scrolled far enough to show the whole line.
The first screen line of that line was already visible, so no scrolling was
needed.

Without "lastline" the line cannot be shown partially, so the behaviour there
is unchanged.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20895

Commit Summary

  • 08167a0 scroll: jump-scrolling when moving the cursor onto a wrapping line

File Changes

(3 files)

Patch Links:


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.Message ID: <vim/vim/pull/20895@github.com>

Christian Brabandt

unread,
2:57 PM (7 hours ago) 2:57 PM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20895)

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.Message ID: <vim/vim/pull/20895/c5146447685@github.com>

Reply all
Reply to author
Forward
0 new messages