Fix ctrl-d/u issues with scroll_beyond_last_line off (#15395)

Closes #15356

Release Notes:

- vim: Fixed issues with `ctrl-d`/`ctrl-u` when
`scroll_beyond_last_line` is set to `off`
([#15356](https://github.com/zed-industries/zed/issues/15356)).


https://github.com/user-attachments/assets/d3166393-4a4e-4195-9db6-3ff1d4aeec78

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Kevin Sweet 2024-08-23 08:34:40 -06:00 committed by GitHub
parent 518dd3ed3a
commit 5e869dadf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 73 additions and 25 deletions

View file

@ -258,6 +258,8 @@ There are also a few Zed settings that you may also enjoy if you use vim mode:
"relative_line_numbers": true,
// hide the scroll bar
"scrollbar": { "show": "never" },
// prevent the buffer from scrolling beyond the last line
"scroll_beyond_last_line": "off",
// allow cursor to reach edges of screen
"vertical_scroll_margin": 0,
"gutter": {