# editor: Fix Follow Agent unexpectedly stopping during edits \(\#35845\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bd402fdc7daf81fa0672c04b1e0777c86c02916d

Requested commit: bd402fdc7daf81fa0672c04b1e0777c86c02916d

Commit: bd402fdc7daf81fa0672c04b1e0777c86c02916d

Tree: 30cc7f71dc0758f0a158c71d5f182878a301b21d

Author: smit

Committer: GitHub

## Message

```
editor: Fix Follow Agent unexpectedly stopping during edits (#35845)

Closes #34881

For horizontal scroll, we weren't keeping track of the `local` bool, so
whenever the agent tries to autoscroll horizontally, it would be seen as
a user scroll event resulting in unfollow.

Release Notes:

- Fixed an issue where the Follow Agent could unexpectedly stop
following during edits.
```

## Parents

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

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