# Inline assistant: Don't scroll up too high \(\#45171\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 56646e6bc32a1c66eb6972edfe59ad65f64af3a7

Requested commit: 56646e6bc32a1c66eb6972edfe59ad65f64af3a7

Commit: 56646e6bc32a1c66eb6972edfe59ad65f64af3a7

Tree: 98ddbc1d7c30e84b24cbea342eed365f0cca934d

Author: Michael Benfield

Committer: GitHub

## Message

```
Inline assistant: Don't scroll up too high (#45171)

In the case of large vertical_scroll_margin, we could scroll up such
that the assistant was out of view. Now, keep it no lower than the
center of the editor.

Closes #18058

Release Notes:

- N/A
```

## Parents

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

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