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

h_east (Vim Github Repository) <[email protected]> Fri, 31 Jul 2026 04:21:03 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/[email protected]>
```
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 --

  * scroll: jump-scrolling when moving the cursor onto a wrapping line

-- File Changes --

    M runtime/doc/todo.txt (3)
    M src/move.c (9)
    M src/testdir/test_scroll_opt.vim (20)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20895
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20895%40github.com.