# editor: Add scroll_beyond_last_line setting \(\#11155\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6eb537643a53d7df96b33b7a2ee6c369fb941f2e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6eb537643a53d7df96b33b7a2ee6c369fb941f2e

Requested commit: 6eb537643a53d7df96b33b7a2ee6c369fb941f2e

Commit: 6eb537643a53d7df96b33b7a2ee6c369fb941f2e

Tree: f73c537664c88576708a45e83ca689804588485b

Author: Evan Liu

Committer: GitHub

## Message

```
editor: Add scroll_beyond_last_line setting (#11155)

Add `scroll_beyond_last_line` setting with 3 options: 

- `one_page`: The default (current) behaviour of scrolling one more page
beyond the last line.
<img width="568" alt="SCR-20240429-sxry"
src="https://github.com/zed-industries/zed/assets/126383/1effbee9-759f-4858-9022-83bbb208ef82">

- `off`: No scrolling beyond the last line. 
<img width="568" alt="SCR-20240429-syhv"
src="https://github.com/zed-industries/zed/assets/126383/5391b1d7-918d-43f3-8a6f-7642ef32d174">

- `vertical_scroll_margin`: Scroll beyond the last line by the same
number of lines as `vertical_scroll_margin`. Matches the behaviour of
keyboard scrolling.
<img width="568" alt="SCR-20240429-sypc"
src="https://github.com/zed-industries/zed/assets/126383/bb9cc928-e515-4503-88f7-e434c45d742f">

Release Notes:

- Added `scroll_beyond_last_line` setting
([#4962](https://github.com/zed-industries/zed/issues/4962)).
```

## Parents

- [40eb84109d12c172aac527ff107afefc6df094a8](https://git.cafe/gitcafe/zed/commit/40eb84109d12c172aac527ff107afefc6df094a8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6eb537643a53d7df96b33b7a2ee6c369fb941f2e?format=markdown)
