Skip to content

'scrolloffpad', scroll-down on the last line does scroll-up #21096

Description

@gx089

Steps to reproduce

Ok this could potentialy a bug:

: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: neovim/neovim#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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions