# Fix \`Replace Next Match\` command \(\#30890\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d61a5444004ff694353a82b3cde4ff54c13e2e0e

Requested commit: d61a5444004ff694353a82b3cde4ff54c13e2e0e

Commit: d61a5444004ff694353a82b3cde4ff54c13e2e0e

Tree: 257169e448cbfc24cd3ab7fe140741c943fd5cac

Author: Aleksei Gusev

Committer: GitHub

## Message

```
Fix `Replace Next Match` command (#30890)

Currently, `search::ReplaceNext` works only first time it is executed
because Zed switches the focus to the editor. It seems
`self.editor_focus` call is unnecessary.

Closes #17466

Release Notes:

- Fixed `Replace Next Match` command. Previously it worked once, then
Zed incorrectly switched the focus to the editor


https://github.com/user-attachments/assets/66ef61d6-1efe-43ca-8d8c-6b40540a9930
```

## Parents

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

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