# Fix bugs in autoscroll with 'fit' strategy \(\#2893\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d6ffb68305b9cce636bc0241a5aa4f2bf2b4ebb1

Requested commit: d6ffb68305b9cce636bc0241a5aa4f2bf2b4ebb1

Commit: d6ffb68305b9cce636bc0241a5aa4f2bf2b4ebb1

Tree: bd061f71836b5d2968c22d192b0aa0b36d5e5033

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix bugs in autoscroll with 'fit' strategy (#2893)

This fixes a bug where text moved up and down by one pixel in the buffer
search query editor, while typing.

Release  notes:
* Fixed a bug where editors didn't auto-scroll when typing if all
cursors could not fit within the viewport.
```

## Parents

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

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

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