# Remove redundant \`autoscroll_horizontally\` during editor prepaint \(\#34218\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e2e529bd943dd0b5c915fc0efdb332757e0541de

Requested commit: e2e529bd943dd0b5c915fc0efdb332757e0541de

Commit: e2e529bd943dd0b5c915fc0efdb332757e0541de

Tree: b3ea7fa4a179f9526ffbbf05948075969d5218ff

Author: Michael Sloan

Committer: GitHub

## Message

```
Remove redundant `autoscroll_horizontally` during editor prepaint (#34218)

* Experimentally `scroll_manager.anchor()` appears to be the same before
and after this 2nd call of `autoscroll_horizontally`

* Nothing these depend on seem to be mutated between the calls (and
since this is prepaint, stuff within editor also shouldn't be mutated)

Release Notes:

- N/A

Co-authored-by: Finn <finn@zed.dev>
```

## Parents

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

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