# buffer_search: Fix DeployReplace not working when buffer search is already deployed \(\#29066\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 65a7076ba89ebee9bc1547d3ad429b6a5ded2d47

Requested commit: 65a7076ba89ebee9bc1547d3ad429b6a5ded2d47

Commit: 65a7076ba89ebee9bc1547d3ad429b6a5ded2d47

Tree: 5c7cbf8b24c8efecd6bf763b72193a725fdff103

Author: Smit Barmase

Committer: GitHub

## Message

```
buffer_search: Fix DeployReplace not working when buffer search is already deployed (#29066)

Closes #29000

When buffer search is already deployed:
1. If find dialog is enabled, change it to find-and-replace dialog and
focuses to it
2. If find-and-replace is enabled, focuses to it 

Release Notes:

- Fixed an issue where invoking `DeployReplace` while the Find dialog
was open did not switch to the Find & Replace dialog.
- Fixed an issue where invoking `DeployReplace` while the Find & Replace
dialog was already open did not focus it.
```

## Parents

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

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