# Fix bugs in autoscroll with 'fit' strategy · gitcafe/zed

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

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

Visibility: public

Requested revision: a3b2c03b1720a9dbda35ff8084a850d8b4560cd8

Requested commit: a3b2c03b1720a9dbda35ff8084a850d8b4560cd8

Commit: a3b2c03b1720a9dbda35ff8084a850d8b4560cd8

Tree: 76da0accfd75d32705554c815f4c728b02f86c60

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Fix bugs in autoscroll with 'fit' strategy

* Scroll to the newest cursor if all cursors can't fit in the viewport.
* Refuse to layout an editor less tall than one line height.

Co-authored-by: Nathan <nathan@zed.dev>

```

## Parents

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

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