# Make autoscroll optional when highlighting editor rows \(\#11950\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4ca6e0e3874feaa939390b191a010ede88109adf

Requested commit: 4ca6e0e3874feaa939390b191a010ede88109adf

Commit: 4ca6e0e3874feaa939390b191a010ede88109adf

Tree: 83b1a46b176f7a58657ebf16a33117b62e1d5a6e

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Make autoscroll optional when highlighting editor rows (#11950)

Previously, when highlighting editor rows with a color, we always
auto-scrolled to the first highlighted row. This was useful in contexts
like go-to-line and the outline view. We had an explicit special case
for git diff highlights. Now, part of the `highlight_rows` API, you
specify whether or not you want the autoscroll behavior. This is needed
because we want to highlight rows in the assistant panel, and we don't
want the autoscroll.

Release Notes:

- N/A
```

## Parents

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

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