# agent: Fix autoscrolling to history entry \(\#30321\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9810745465fdc1da28e109094de63373c7e03201

Requested commit: 9810745465fdc1da28e109094de63373c7e03201

Commit: 9810745465fdc1da28e109094de63373c7e03201

Tree: 712473c2e174323bf7c68f485919da47ac5072bf

Author: Agus Zubiaga

Committer: GitHub

## Message

```
agent: Fix autoscrolling to history entry (#30321)

We were still using entry indexes to scroll, but the list now includes
the separators as items, so the indexes need to be translated

Release Notes:

- agent: Fix autoscrolling to history entry when navigating via keyboard
```

## Parents

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

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