[vim/vim] 'scrolloffpad', scroll-down on the last line does scroll-up (Issue #21096)

GX (Vim Github Repository) <[email protected]>
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/issues/[email protected]>
gx089 created an issue (vim/vim#21096)

### Steps to reproduce

Ok this could potentialy a bug:
```vim
:set scrolloff=999
:set scrolloffpad=1
```
When cursor is on the last line of the buffer (moved manually), `<C-d>` performs an upward scroll like `<C-u>` with the corresponding `vim.opt.scroll`
A better behavior in this case would be that `<C-d` does nothing.

Bug see: https://github.com/neovim/neovim/issues/41383



### Expected behaviour

`<C-d>` on the last line (with the settings above) should do nothing.

### Version of Vim

vim-patch:9.2.0356

### Environment

-

### Logs and stack traces

```shell

```

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

Message ID: <vim/vim/issues/[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/issues/21096%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.